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

Function GoaImport

codegen/import.go:48–55  ·  view source on GitHub ↗

GoaImport creates an import for a Goa package.

(rel string)

Source from the content-addressed store, hash-verified

46
47// GoaImport creates an import for a Goa package.
48func GoaImport(rel string) *ImportSpec {
49 name := ""
50 if rel == "" {
51 name = "goa"
52 rel = "pkg"
53 }
54 return GoaNamedImport(rel, name)
55}
56
57// GoaNamedImport creates an import for a Goa package with the given name.
58func GoaNamedImport(rel, name string) *ImportSpec {

Callers 15

clientTypeFunction · 0.92
serverFileFunction · 0.92
ServerEncodeDecodeFileFunction · 0.92
endpointParserFunction · 0.92
payloadBuildersFunction · 0.92
ExampleServerFunction · 0.92
ExampleCLIFunction · 0.92
serverTypeFunction · 0.92
websocketServerFileFunction · 0.92
WebsocketClientFileFunction · 0.92
ClientEncodeDecodeFileFunction · 0.92
clientFileFunction · 0.92

Calls 1

GoaNamedImportFunction · 0.85

Tested by

no test coverage detected