MCPcopy
hub / github.com/tidwall/gjson / String

Method String

gjson.go:42–59  ·  view source on GitHub ↗

String returns a string representation of the type.

()

Source from the content-addressed store, hash-verified

40
41// String returns a string representation of the type.
42func (t Type) String() string {
43 switch t {
44 default:
45 return ""
46 case Null:
47 return "Null"
48 case False:
49 return "False"
50 case Number:
51 return "Number"
52 case String:
53 return "String"
54 case True:
55 return "True"
56 case JSON:
57 return "JSON"
58 }
59}
60
61// Result represents a json value that is returned from Get().
62type Result struct {

Callers 15

TestEmojiFunction · 0.45
testEscapePathFunction · 0.45
TestTimeResultFunction · 0.45
TestManyRecursionFunction · 0.45
TestByteSafetyFunction · 0.45
TestTypesFunction · 0.45
TestForEachFunction · 0.45
TestMapFunction · 0.45
TestBasic1Function · 0.45
TestBasic2Function · 0.45
TestBasic3Function · 0.45

Calls

no outgoing calls

Tested by 15

TestEmojiFunction · 0.36
testEscapePathFunction · 0.36
TestTimeResultFunction · 0.36
TestManyRecursionFunction · 0.36
TestByteSafetyFunction · 0.36
TestTypesFunction · 0.36
TestForEachFunction · 0.36
TestMapFunction · 0.36
TestBasic1Function · 0.36
TestBasic2Function · 0.36
TestBasic3Function · 0.36