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

Function mapper

selector.go:99–106  ·  view source on GitHub ↗
(c context.Context, r, v interface{}, match ambiguousMatcher)

Source from the content-addressed store, hash-verified

97}
98
99func mapper(c context.Context, r, v interface{}, match ambiguousMatcher) {
100 match([]interface{}{}, v)
101 visitAll(v, func(wildcard string, v interface{}) {
102 mapper(c, r, v, func(key interface{}, v interface{}) {
103 match(append([]interface{}{wildcard}, key.([]interface{})...), v)
104 })
105 })
106}
107
108func visitAll(v interface{}, visit func(key string, v interface{})) {
109 switch v := v.(type) {

Callers

nothing calls this directly

Calls 1

visitAllFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…