PackageName returns the package name of the given location.
()
| 93 | |
| 94 | // PackageName returns the package name of the given location. |
| 95 | func (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. |
no test coverage detected