MCPcopy Create free account
hub / github.com/tidwall/gjson / validfalse

Function validfalse

gjson.go:2728–2734  ·  view source on GitHub ↗
(data []byte, i int)

Source from the content-addressed store, hash-verified

2726 return i, false
2727}
2728func validfalse(data []byte, i int) (outi int, ok bool) {
2729 if i+4 <= len(data) && data[i] == 'a' && data[i+1] == 'l' &&
2730 data[i+2] == 's' && data[i+3] == 'e' {
2731 return i + 4, true
2732 }
2733 return i, false
2734}
2735func validnull(data []byte, i int) (outi int, ok bool) {
2736 if i+3 <= len(data) && data[i] == 'u' && data[i+1] == 'l' &&
2737 data[i+2] == 'l' {

Callers 1

validanyFunction · 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…