MCPcopy Create free account
hub / github.com/compose-spec/compose-go / GetAsStringList

Function GetAsStringList

utils/stringutils.go:44–50  ·  view source on GitHub ↗

GetAsEqualsMap format a key : value map into key=value strings

(em map[string]string)

Source from the content-addressed store, hash-verified

42
43// GetAsEqualsMap format a key : value map into key=value strings
44func GetAsStringList(em map[string]string) []string {
45 m := make([]string, 0, len(em))
46 for k, v := range em {
47 m = append(m, fmt.Sprintf("%s=%s", k, v))
48 }
49 return m
50}

Callers 1

TestEnvMapFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestEnvMapFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…