MCPcopy Create free account
hub / github.com/buger/jsonparser / wildcardIndex

Function wildcardIndex

wildcard.go:151–158  ·  view source on GitHub ↗

SYS-REQ-113

(path []string)

Source from the content-addressed store, hash-verified

149
150// SYS-REQ-113
151func wildcardIndex(path []string) int {
152 for i, component := range path {
153 if component == wildcardPathComponent {
154 return i
155 }
156 }
157 return -1
158}

Callers 3

eachKeyWildcardFunction · 0.85
SetWildcardFunction · 0.85
expandWildcardPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected