(ctx context.Context, r interface{}, match ambiguousMatcher)
| 29 | } |
| 30 | |
| 31 | func (p plainPath) matcher(ctx context.Context, r interface{}, match ambiguousMatcher) ambiguousMatcher { |
| 32 | if len(p) == 0 { |
| 33 | return match |
| 34 | } |
| 35 | return func(k, v interface{}) { |
| 36 | res, err := p.evaluatePath(ctx, r, v) |
| 37 | if err == nil { |
| 38 | match(k, res) |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func (p plainPath) visitMatchs(ctx context.Context, r interface{}, visit pathMatcher) { |
| 44 | res, err := p.evaluatePath(ctx, r, r) |
no test coverage detected