MCPcopy
hub / github.com/buger/jsonparser / String

Method String

parser.go:606–625  ·  view source on GitHub ↗

SYS-REQ-001

()

Source from the content-addressed store, hash-verified

604
605// SYS-REQ-001
606func (vt ValueType) String() string {
607 switch vt {
608 case NotExist:
609 return "non-existent"
610 case String:
611 return "string"
612 case Number:
613 return "number"
614 case Object:
615 return "object"
616 case Array:
617 return "array"
618 case Boolean:
619 return "boolean"
620 case Null:
621 return "null"
622 default:
623 return "unknown"
624 }
625}
626
627var (
628 trueLiteral = []byte("true")

Calls

no outgoing calls

Tested by 13

TestKeyDepthFunction · 0.36
TestKeyCountFunction · 0.36
TestKeyDepthArrayFunction · 0.36
TestKeyCountArrayFunction · 0.36
TestEachKeyArrayFunction · 0.36
TestLargeArrayFunction · 0.36
TestArrayOutOfBoundsFunction · 0.36
BenchmarkUjsonSmallFunction · 0.36
BenchmarkGabsMediumFunction · 0.36