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

Function List

examples/examples.go:59–65  ·  view source on GitHub ↗

List returns all embedded examples.

()

Source from the content-addressed store, hash-verified

57
58// List returns all embedded examples.
59func List() ([]codersdk.TemplateExample, error) {
60 var err error
61 parseExamples.Do(func() {
62 parsedExamples, err = parseAndVerifyExamples()
63 })
64 return parsedExamples, err
65}
66
67func parseAndVerifyExamples() (examples []codersdk.TemplateExample, err error) {
68 f, err := files.Open(examplesJSON)

Callers 7

templateExamplesMethod · 0.92
TestStarterTemplatesFunction · 0.92
templateInitMethod · 0.92
TestTemplateFunction · 0.92
ArchiveFunction · 0.70

Calls 2

parseAndVerifyExamplesFunction · 0.85
DoMethod · 0.65

Tested by 3

TestStarterTemplatesFunction · 0.74
TestTemplateFunction · 0.74