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

Function NewImport

codegen/import.go:38–40  ·  view source on GitHub ↗

NewImport creates an import spec.

(name, path string)

Source from the content-addressed store, hash-verified

36
37// NewImport creates an import spec.
38func NewImport(name, path string) *ImportSpec {
39 return &ImportSpec{Name: name, Path: path}
40}
41
42// SimpleImport creates an import with no explicit path component.
43func SimpleImport(path string) *ImportSpec {

Callers 2

WriteMethod · 0.92
FilesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected