WalkStringMap walks over an interface and replaces keys that match the match function with the replace function
(d map[string]interface{}, match MatchFn, replace ReplaceFn)
| 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 { |
| 21 | return doWalk("", d, match, replace) |
| 22 | } |
| 23 | |
| 24 | func doWalk(path string, d interface{}, match MatchFn, replace ReplaceFn) error { |
| 25 | var err error |
no test coverage detected