(s *state, t reflect.Type, vx, vy reflect.Value)
| 132 | } |
| 133 | |
| 134 | func (f pathFilter) filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption { |
| 135 | if f.fnc(s.curPath) { |
| 136 | return f.opt.filter(s, t, vx, vy) |
| 137 | } |
| 138 | return nil |
| 139 | } |
| 140 | |
| 141 | func (f pathFilter) String() string { |
| 142 | return fmt.Sprintf("FilterPath(%s, %v)", function.NameOf(reflect.ValueOf(f.fnc)), f.opt) |