MCPcopy
hub / github.com/cortexlabs/cortex / StrMapKeysString

Function StrMapKeysString

pkg/lib/maps/string.go:19–27  ·  view source on GitHub ↗
(myMap map[string]string)

Source from the content-addressed store, hash-verified

17package maps
18
19func StrMapKeysString(myMap map[string]string) []string {
20 keys := make([]string, len(myMap))
21 i := 0
22 for key := range myMap {
23 keys[i] = key
24 i++
25 }
26 return keys
27}
28
29func StrMapValuesString(myMap map[string]string) []string {
30 values := make([]string, len(myMap))

Callers 1

StructFromStringMapFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected