MCPcopy
hub / github.com/helm/helm / sortTemplates

Function sortTemplates

pkg/engine/engine.go:497–506  ·  view source on GitHub ↗
(tpls map[string]renderable)

Source from the content-addressed store, hash-verified

495}
496
497func sortTemplates(tpls map[string]renderable) []string {
498 keys := make([]string, len(tpls))
499 i := 0
500 for key := range tpls {
501 keys[i] = key
502 i++
503 }
504 sort.Sort(sort.Reverse(byPathLen(keys)))
505 return keys
506}
507
508type byPathLen []string
509

Callers 2

renderMethod · 0.85
TestSortTemplatesFunction · 0.85

Calls 1

byPathLenTypeAlias · 0.85

Tested by 1

TestSortTemplatesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…