MCPcopy
hub / github.com/spf13/viper / castMapFlagToMapInterface

Function castMapFlagToMapInterface

viper.go:1793–1799  ·  view source on GitHub ↗
(src map[string]FlagValue)

Source from the content-addressed store, hash-verified

1791}
1792
1793func castMapFlagToMapInterface(src map[string]FlagValue) map[string]any {
1794 tgt := map[string]any{}
1795 for k, v := range src {
1796 tgt[k] = v
1797 }
1798 return tgt
1799}
1800
1801// mergeMaps merges two maps. The `itgt` parameter is for handling go-yaml's
1802// insistence on parsing nested structures as `map[any]any`

Callers 2

AllKeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected