MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetOrderedMapKeys

Function GetOrderedMapKeys

pkg/util/utilfn/utilfn.go:377–384  ·  view source on GitHub ↗
(m map[string]V)

Source from the content-addressed store, hash-verified

375}
376
377func GetOrderedMapKeys[V any](m map[string]V) []string {
378 keys := make([]string, 0, len(m))
379 for key := range m {
380 keys = append(keys, key)
381 }
382 sort.Strings(keys)
383 return keys
384}
385
386const (
387 nullEncodeEscByte = '\\'

Callers 4

generateServicesFileFunction · 0.92
generateWshClientApiFileFunction · 0.92
GenerateWshClientFunction · 0.92
EncodeStringMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected