MCPcopy Create free account
hub / github.com/apache/camel-k / SortedStringMapKeys

Function SortedStringMapKeys

pkg/util/util.go:313–323  ·  view source on GitHub ↗
(m map[string]string)

Source from the content-addressed store, hash-verified

311}
312
313func SortedStringMapKeys(m map[string]string) []string {
314 res := make([]string, len(m))
315 i := 0
316 for k := range m {
317 res[i] = k
318 i++
319 }
320 sort.Strings(res)
321
322 return res
323}
324
325// CopyMap clones a map of strings.
326func CopyMap(source map[string]string) map[string]string {

Callers 1

ApplyMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected