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

Function toStringList

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

Source from the content-addressed store, hash-verified

975}
976
977func toStringList(value map[string]any, separator string, allowNil bool) []string {
978 output := []string{}
979 for key, value := range value {
980 if value == nil && !allowNil {
981 continue
982 }
983 output = append(output, fmt.Sprintf("%s%s%s", key, separator, value))
984 }
985 sort.Strings(output)
986 return output
987}

Callers 1

transformListOrMappingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…