(myMap map[string]interface{})
| 22 | ) |
| 23 | |
| 24 | func 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 | |
| 34 | func InterfaceMapSortedKeys(myMap map[string]interface{}) []string { |
| 35 | keys := InterfaceMapKeys(myMap) |
no outgoing calls
no test coverage detected