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

Function templateInsightsSectionAsStrings

coderd/insights.go:796–802  ·  view source on GitHub ↗
(sections ...codersdk.TemplateInsightsSection)

Source from the content-addressed store, hash-verified

794}
795
796func 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
804func parseTemplateInsightsSections(ctx context.Context, rw http.ResponseWriter, sections []string) ([]codersdk.TemplateInsightsSection, bool) {
805 t := make([]codersdk.TemplateInsightsSection, len(sections))

Callers 1

insightsTemplatesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected