MCPcopy Create free account
hub / github.com/encoder-run/operator / sourceData

Function sourceData

pkg/graph/generated.go:901–907  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

899var sourcesFS embed.FS
900
901func sourceData(filename string) string {
902 data, err := sourcesFS.ReadFile(filename)
903 if err != nil {
904 panic(fmt.Sprintf("codegen problem: %s not available", filename))
905 }
906 return string(data)
907}
908
909var sources = []*ast.Source{
910 {Name: "schema.graphqls", Input: sourceData("schema.graphqls"), BuiltIn: false},

Callers 1

generated.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected