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

Method visitMatchs

path.go:43–48  ·  view source on GitHub ↗
(ctx context.Context, r interface{}, visit pathMatcher)

Source from the content-addressed store, hash-verified

41}
42
43func (p plainPath) visitMatchs(ctx context.Context, r interface{}, visit pathMatcher) {
44 res, err := p.evaluatePath(ctx, r, r)
45 if err == nil {
46 visit(nil, res)
47 }
48}
49
50func (p plainPath) withPlainSelector(selector plainSelector) path {
51 return append(p, selector)

Callers

nothing calls this directly

Calls 1

evaluatePathMethod · 0.95

Tested by

no test coverage detected