MCPcopy Create free account
hub / github.com/PaesslerAG/jsonpath / visitAll

Function visitAll

selector.go:108–121  ·  view source on GitHub ↗
(v interface{}, visit func(key string, v interface{}))

Source from the content-addressed store, hash-verified

106}
107
108func visitAll(v interface{}, visit func(key string, v interface{})) {
109 switch v := v.(type) {
110 case []interface{}:
111 for i, e := range v {
112 k := strconv.Itoa(i)
113 visit(k, e)
114 }
115 case map[string]interface{}:
116 for k, e := range v {
117 visit(k, e)
118 }
119 }
120
121}
122
123//[? ]
124func filterSelector(filter gval.Evaluable) ambiguousSelector {

Callers 3

starSelectorFunction · 0.85
mapperFunction · 0.85
filterSelectorFunction · 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…