mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
@@ -29,7 +29,10 @@ func addImports(imports map[string]string, decl ast.Decl, srcDir string) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
quotedPath := importSpec.Path.Value // e.g. "\"sample/app/models\""
|
quotedPath := importSpec.Path.Value // e.g. "\"sample/app/models\""
|
||||||
|
if quotedPath == `"C"` {
|
||||||
|
continue
|
||||||
|
}
|
||||||
fullPath := quotedPath[1 : len(quotedPath)-1] // Remove the quotes
|
fullPath := quotedPath[1 : len(quotedPath)-1] // Remove the quotes
|
||||||
|
|
||||||
// If the package was not aliased (common case), we have to import it
|
// If the package was not aliased (common case), we have to import it
|
||||||
|
|||||||
Reference in New Issue
Block a user