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

Function validtrue

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

Source from the content-addressed store, hash-verified

2719}
2720
2721func validtrue(data []byte, i int) (outi int, ok bool) {
2722 if i+3 <= len(data) && data[i] == 'r' && data[i+1] == 'u' &&
2723 data[i+2] == 'e' {
2724 return i + 3, true
2725 }
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' {

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…