(c context.Context, r, v interface{}, match ambiguousMatcher)
| 97 | } |
| 98 | |
| 99 | func 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 | |
| 108 | func visitAll(v interface{}, visit func(key string, v interface{})) { |
| 109 | switch v := v.(type) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…