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

Method Section

codegen/file.go:57–65  ·  view source on GitHub ↗

Section returns the section templates with the given name or nil if not found.

(name string)

Source from the content-addressed store, hash-verified

55
56// Section returns the section templates with the given name or nil if not found.
57func (f *File) Section(name string) []*SectionTemplate {
58 var sts []*SectionTemplate
59 for _, s := range f.SectionTemplates {
60 if s.Name == name {
61 sts = append(sts, s)
62 }
63 }
64 return sts
65}
66
67// Render executes the file section templates and writes the resulting bytes to
68// an output file. The path of the output file is computed by appending the file

Callers 14

runTestsFunction · 0.95
TestSSE_MixedResultsFunction · 0.95
TestServerGRPCInterfaceFunction · 0.80
TestServerHandlerInitFunction · 0.80
TestRequestDecoderFunction · 0.80
TestResponseEncoderFunction · 0.80
TestClientEndpointInitFunction · 0.80
TestRequestEncoderFunction · 0.80
TestResponseDecoderFunction · 0.80
TestStreamingFunction · 0.80
TestStreamingWithErrorsFunction · 0.80

Calls

no outgoing calls

Tested by 14

runTestsFunction · 0.76
TestSSE_MixedResultsFunction · 0.76
TestServerGRPCInterfaceFunction · 0.64
TestServerHandlerInitFunction · 0.64
TestRequestDecoderFunction · 0.64
TestResponseEncoderFunction · 0.64
TestClientEndpointInitFunction · 0.64
TestRequestEncoderFunction · 0.64
TestResponseDecoderFunction · 0.64
TestStreamingFunction · 0.64
TestStreamingWithErrorsFunction · 0.64