(sections ...codersdk.TemplateInsightsSection)
| 794 | } |
| 795 | |
| 796 | func templateInsightsSectionAsStrings(sections ...codersdk.TemplateInsightsSection) []string { |
| 797 | t := make([]string, len(sections)) |
| 798 | for i, s := range sections { |
| 799 | t[i] = string(s) |
| 800 | } |
| 801 | return t |
| 802 | } |
| 803 | |
| 804 | func parseTemplateInsightsSections(ctx context.Context, rw http.ResponseWriter, sections []string) ([]codersdk.TemplateInsightsSection, bool) { |
| 805 | t := make([]codersdk.TemplateInsightsSection, len(sections)) |