(templateID string, tes []codersdk.TemplateExample)
| 132 | } |
| 133 | |
| 134 | func 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 | } |