MCPcopy Index your code
hub / github.com/cortexlabs/cortex / InterfaceMapKeys

Function InterfaceMapKeys

pkg/lib/maps/interface.go:24–32  ·  view source on GitHub ↗
(myMap map[string]interface{})

Source from the content-addressed store, hash-verified

22)
23
24func InterfaceMapKeys(myMap map[string]interface{}) []string {
25 keys := make([]string, len(myMap))
26 i := 0
27 for key := range myMap {
28 keys[i] = key
29 i++
30 }
31 return keys
32}
33
34func InterfaceMapSortedKeys(myMap map[string]interface{}) []string {
35 keys := InterfaceMapKeys(myMap)

Callers 2

StructFunction · 0.92
InterfaceMapSortedKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected