GoaImport creates an import for a Goa package.
(rel string)
| 46 | |
| 47 | // GoaImport creates an import for a Goa package. |
| 48 | func 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. |
| 58 | func GoaNamedImport(rel, name string) *ImportSpec { |
no test coverage detected