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

Function toString

cli/compose/loader/loader.go:966–975  ·  view source on GitHub ↗
(value any, allowNil bool)

Source from the content-addressed store, hash-verified

964}
965
966func toString(value any, allowNil bool) any {
967 switch {
968 case value != nil:
969 return fmt.Sprint(value)
970 case allowNil:
971 return nil
972 default:
973 return ""
974 }
975}
976
977func toStringList(value map[string]any, separator string, allowNil bool) []string {
978 output := []string{}

Callers 1

toMapStringStringFunction · 0.85

Calls 1

SprintMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…