MCPcopy Create free account
hub / github.com/netdata/netdata / mapKeysSorted

Function mapKeysSorted

src/go/pkg/selectorcore/compiled.go:96–103  ·  view source on GitHub ↗
(set map[string]struct{})

Source from the content-addressed store, hash-verified

94}
95
96func mapKeysSorted(set map[string]struct{}) []string {
97 out := make([]string, 0, len(set))
98 for key := range set {
99 out = append(out, key)
100 }
101 slices.Sort(out)
102 return out
103}

Callers 1

ParseCompiledFunction · 0.70

Calls 1

SortMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…