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

Function InterfaceMapSortedKeys

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

Source from the content-addressed store, hash-verified

32}
33
34func InterfaceMapSortedKeys(myMap map[string]interface{}) []string {
35 keys := InterfaceMapKeys(myMap)
36 sort.Strings(keys)
37 return keys
38}
39
40func InterfaceMapKeysUnsafe(myMap interface{}) []string {
41 keyValues := reflect.ValueOf(myMap).MapKeys()

Callers 1

FlattenAllStrValuesFunction · 0.92

Calls 1

InterfaceMapKeysFunction · 0.85

Tested by

no test coverage detected