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

Function filterSelector

selector.go:124–136  ·  view source on GitHub ↗

[? ]

(filter gval.Evaluable)

Source from the content-addressed store, hash-verified

122
123//[? ]
124func filterSelector(filter gval.Evaluable) ambiguousSelector {
125 return func(c context.Context, r, v interface{}, match ambiguousMatcher) {
126 visitAll(v, func(wildcard string, v interface{}) {
127 condition, err := filter.EvalBool(currentContext(c, v), r)
128 if err != nil {
129 return
130 }
131 if condition {
132 match(wildcard, v)
133 }
134 })
135 }
136}
137
138//[::]
139func rangeSelector(min, max, step gval.Evaluable) ambiguousSelector {

Callers 2

parsePathMethod · 0.85
parseMapperMethod · 0.85

Calls 2

visitAllFunction · 0.85
currentContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…