MCPcopy
hub / github.com/urfave/cli / sortedKeys

Function sortedKeys

flag_map_impl.go:131–138  ·  flag_map_impl.go::sortedKeys
(dict map[string]T)

Source from the content-addressed store, hash-verified

129}
130
131func sortedKeys[T any](dict map[string]T) []string {
132 keys := make([]string, 0, len(dict))
133 for k := range dict {
134 keys = append(keys, k)
135 }
136 sort.Strings(keys)
137 return keys
138}

Callers 1

ToStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected