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

Function tolit

gjson.go:600–607  ·  view source on GitHub ↗
(json string)

Source from the content-addressed store, hash-verified

598}
599
600func tolit(json string) (raw string) {
601 for i := 1; i < len(json); i++ {
602 if json[i] < 'a' || json[i] > 'z' {
603 return json[:i]
604 }
605 }
606 return json
607}
608
609func tostr(json string) (raw string, str string) {
610 // expects that the lead character is a '"'

Callers 2

arrayOrMapMethod · 0.85
ParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…