MCPcopy Create free account

hub / github.com/tidwall/pretty / functions

Functions45 in github.com/tidwall/pretty

↓ 14 callersFunctionj
(js interface{})
pretty_test.go:14
↓ 12 callersFunctionassertEqual
(t *testing.T, a, b interface{})
pretty_test.go:47
↓ 11 callersFunctionPretty
Pretty converts the input json into a more human readable format where each element is on it's own line with clear indentation.
pretty.go:31
↓ 11 callersFunctionUgly
Ugly removes insignificant space characters from the input json byte slice and returns the compacted result.
pretty.go:53
↓ 6 callersFunctionPrettyOptions
PrettyOptions is like Pretty but with customized options.
pretty.go:34
↓ 3 callersFunctionUglyInPlace
UglyInPlace removes insignificant space characters from the input json byte slice and returns the compacted result. This method reuses the input json
pretty.go:62
↓ 3 callersMethodisLess
(i, j int, kind byKind)
pretty.go:195
↓ 2 callersFunctionColor
Color will colorize the json. The style parma is used for customizing the colors. Passing nil to the style param will use the default TerminalStyle.
pretty.go:465
↓ 2 callersFunctionappendPrettyAny
(buf, json []byte, i int, pretty bool, width int, prefix, indent string, sortkeys bool, tabs, nl, max int)
pretty.go:98
↓ 2 callersFunctionappendPrettyObject
(buf, json []byte, i int, open, close byte, pretty bool, width int, prefix, indent string, sortkeys bool, tabs
pretty.go:248
↓ 2 callersFunctionappendPrettyString
(buf, json []byte, i, nl int)
pretty.go:370
↓ 2 callersFunctionappendTabs
(buf []byte, prefix, indent string, tabs int)
pretty.go:404
↓ 2 callersFunctiongetjtype
(v []byte)
pretty.go:175
↓ 2 callersFunctionhexp
(p byte)
pretty.go:429
↓ 2 callersFunctionisNaNOrInf
(src []byte)
pretty.go:90
↓ 2 callersFunctionparsestr
(s []byte)
pretty.go:234
↓ 2 callersFunctionspec
(src, dst []byte)
pretty.go:614
↓ 2 callersFunctionugly
(dst, src []byte)
pretty.go:64
↓ 1 callersFunctionSpec
Spec strips out comments and trailing commas and convert the input to a valid JSON per the official spec: https://tools.ietf.org/html/rfc8259 The res
pretty.go:604
↓ 1 callersFunctionSpecInPlace
SpecInPlace is the same as Spec, but this method reuses the input json buffer to avoid allocations. Do not use the original bytes slice upon return.
pretty.go:610
↓ 1 callersFunctionappendPrettyNumber
(buf, json []byte, i, nl int)
pretty.go:393
↓ 1 callersFunctionsortPairs
(json, buf []byte, pairs []pair)
pretty.go:348
FunctionBenchmarkJSONCompact
(t *testing.B)
pretty_test.go:473
FunctionBenchmarkJSONIndent
(t *testing.B)
pretty_test.go:464
FunctionBenchmarkPretty
(t *testing.B)
pretty_test.go:390
FunctionBenchmarkPrettySortKeys
(t *testing.B)
pretty_test.go:398
FunctionBenchmarkSpec
(t *testing.B)
pretty_test.go:447
FunctionBenchmarkSpecInPlace
(t *testing.B)
pretty_test.go:455
FunctionBenchmarkUgly
(t *testing.B)
pretty_test.go:407
FunctionBenchmarkUglyInPlace
(t *testing.B)
pretty_test.go:415
MethodLen
()
pretty.go:140
MethodLess
(i, j int)
pretty.go:143
MethodSwap
(i, j int)
pretty.go:152
FunctionTestBig
(t *testing.T)
pretty_test.go:90
FunctionTestColor
(t *testing.T)
pretty_test.go:370
FunctionTestNaN
(t *testing.T)
pretty_test.go:562
FunctionTestPretty
(t *testing.T)
pretty_test.go:54
FunctionTestPrettyColor
(t *testing.T)
pretty_test.go:500
FunctionTestPrettyNoSpaceAfterNewline
(t *testing.T)
pretty_test.go:482
FunctionTestPrettyStableSort
(t *testing.T)
pretty_test.go:490
FunctionTestRandom
(t *testing.T)
pretty_test.go:81
FunctionTestSpec
(t *testing.T)
pretty_test.go:514
FunctionTestStableSort10
(t *testing.T)
pretty_test.go:543
FunctionTestUgly
(t *testing.T)
pretty_test.go:70
Functioninit
()
pretty.go:441