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

Method PackageName

codegen/import.go:95–100  ·  view source on GitHub ↗

PackageName returns the package name of the given location.

()

Source from the content-addressed store, hash-verified

93
94// PackageName returns the package name of the given location.
95func (loc *Location) PackageName() string {
96 if loc == nil {
97 return ""
98 }
99 return Goify(filepath.Base(loc.RelImportPath), false)
100}
101
102// GetMetaType retrieves the type and package defined by the struct:field:type
103// metadata if any.

Callers 15

pkgWithDefaultFunction · 0.80
requestStructPkgFunction · 0.80
responseStructPkgFunction · 0.80
clientTypeFunction · 0.80
transformUnionDataFunction · 0.80
pkgWithDefaultFunction · 0.80
serverTypeFunction · 0.80
InitStructFieldsFunction · 0.80
GoTypeDefMethod · 0.80
pkgWithDefaultFunction · 0.80
PkgMethod · 0.80

Calls 1

GoifyFunction · 0.85

Tested by

no test coverage detected