MCPcopy Create free account
hub / github.com/devspace-sh/devspace / WalkStringMap

Function WalkStringMap

pkg/devspace/deploy/deployer/kubectl/walk/walk.go:20–22  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

18
19// WalkStringMap walks over an interface and replaces keys that match the match function with the replace function
20func WalkStringMap(d map[string]interface{}, match MatchFn, replace ReplaceFn) error {
21 return doWalk("", d, match, replace)
22}
23
24func doWalk(path string, d interface{}, match MatchFn, replace ReplaceFn) error {
25 var err error

Callers 1

Calls 1

doWalkFunction · 0.85

Tested by

no test coverage detected