Walk walks over an interface and replaces keys that match the match function with the replace function
(d map[string]interface{}, match MatchFn, replace ReplaceFn)
| 13 | |
| 14 | // Walk walks over an interface and replaces keys that match the match function with the replace function |
| 15 | func Walk(d map[string]interface{}, match MatchFn, replace ReplaceFn) error { |
| 16 | return doWalk("", d, match, replace) |
| 17 | } |
| 18 | |
| 19 | // WalkStringMap walks over an interface and replaces keys that match the match function with the replace function |
| 20 | func WalkStringMap(d map[string]interface{}, match MatchFn, replace ReplaceFn) error { |