sortedStringKeys returns map keys in stable order for deterministic output.
(m map[string]string)
| 847 | |
| 848 | // sortedStringKeys returns map keys in stable order for deterministic output. |
| 849 | func sortedStringKeys(m map[string]string) []string { |
| 850 | keys := make([]string, 0, len(m)) |
| 851 | for k := range m { |
| 852 | keys = append(keys, k) |
| 853 | } |
| 854 | sort.Strings(keys) |
| 855 | return keys |
| 856 | } |
| 857 | |
| 858 | // memoryProfileKeySuggestions lists the profile keys for /memory profile set. |
| 859 | func memoryProfileKeySuggestions() []prompt.Suggest { |
no outgoing calls
no test coverage detected