MCPcopy Create free account
hub / github.com/docker/cli / toMapStringString

Function toMapStringString

cli/compose/loader/loader.go:958–964  ·  view source on GitHub ↗
(value map[string]any, allowNil bool)

Source from the content-addressed store, hash-verified

956}
957
958func toMapStringString(value map[string]any, allowNil bool) map[string]any {
959 output := make(map[string]any)
960 for key, value := range value {
961 output[key] = toString(value, allowNil)
962 }
963 return output
964}
965
966func toString(value any, allowNil bool) any {
967 switch {

Callers 2

loader.goFile · 0.85
transformMappingOrListFunction · 0.85

Calls 1

toStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…