MCPcopy
hub / github.com/docker/compose / sortedMapKeys

Function sortedMapKeys

pkg/compose/publish.go:397–404  ·  view source on GitHub ↗
(m map[string]V)

Source from the content-addressed store, hash-verified

395}
396
397func sortedMapKeys[V any](m map[string]V) []string {
398 keys := make([]string, 0, len(m))
399 for k := range m {
400 keys = append(keys, k)
401 }
402 slices.Sort(keys)
403 return keys
404}
405
406func (f *envCheckFindings) hasEnvFinding() bool {
407 for _, svc := range f.services {

Callers 3

sortedSuspiciousKeysMethod · 0.85
collectEnvCheckFindingsFunction · 0.85
buildEnvPromptMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected