MCPcopy Index your code
hub / github.com/coder/coder / templateByID

Function templateByID

cli/templateinit.go:134–141  ·  view source on GitHub ↗
(templateID string, tes []codersdk.TemplateExample)

Source from the content-addressed store, hash-verified

132}
133
134func templateByID(templateID string, tes []codersdk.TemplateExample) (codersdk.TemplateExample, bool) {
135 for _, te := range tes {
136 if te.ID == templateID {
137 return te, true
138 }
139 }
140 return codersdk.TemplateExample{}, false
141}

Callers 1

templateInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected