MCPcopy Create free account
hub / github.com/diillson/chatcli / sortedStringKeys

Function sortedStringKeys

cli/memory_command.go:849–856  ·  view source on GitHub ↗

sortedStringKeys returns map keys in stable order for deterministic output.

(m map[string]string)

Source from the content-addressed store, hash-verified

847
848// sortedStringKeys returns map keys in stable order for deterministic output.
849func 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.
859func memoryProfileKeySuggestions() []prompt.Suggest {

Callers 2

showMemoryProfileMethod · 0.85
printProfileListsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected