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

Function parseNumber

gjson.go:733–743  ·  view source on GitHub ↗
(json string, i int)

Source from the content-addressed store, hash-verified

731}
732
733func parseNumber(json string, i int) (int, string) {
734 var s = i
735 i++
736 for ; i < len(json); i++ {
737 if json[i] <= ' ' || json[i] == ',' || json[i] == ']' ||
738 json[i] == '}' {
739 return i, json[s:i]
740 }
741 }
742 return i, json[s:]
743}
744
745func parseLiteral(json string, i int) (int, string) {
746 var s = i

Callers 3

parseObjectFunction · 0.85
parseArrayFunction · 0.85
parseAnyFunction · 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…