MCPcopy Create free account
hub / github.com/goadesign/goa / Header

Function Header

codegen/header.go:11–21  ·  view source on GitHub ↗

Header returns a Go source file header section template.

(title, pack string, imports []*ImportSpec)

Source from the content-addressed store, hash-verified

9
10// Header returns a Go source file header section template.
11func Header(title, pack string, imports []*ImportSpec) *SectionTemplate {
12 return &SectionTemplate{
13 Name: "source-header",
14 Source: codegenTemplates.Read(headerT),
15 Data: map[string]any{
16 "Title": title,
17 "Pkg": pack,
18 "Imports": imports,
19 },
20 }
21}
22
23// VersionFile returns a file that contains the goa version used to generate
24// the code. The file is written to gen/goa.json.

Callers 15

clientTypeFunction · 0.92
serverFileFunction · 0.92
ServerEncodeDecodeFileFunction · 0.92
endpointParserFunction · 0.92
payloadBuildersFunction · 0.92
pathSectionsFunction · 0.92
ExampleServerFunction · 0.92
dummyMultipartFileFunction · 0.92
ExampleCLIFunction · 0.92
serverTypeFunction · 0.92
websocketServerFileFunction · 0.92
WebsocketClientFileFunction · 0.92

Calls 1

ReadMethod · 0.45