Commit 91b35b90 authored by linty's avatar linty
Browse files

feat: skip import

parent 2a3d09bd
Showing with 1 addition and 1 deletion
+1 -1
......@@ -121,7 +121,7 @@ func Render(options *Options) error {
importsStr := formatImport(mergedImports)
// Step 7: Add imports to the top of the file
if options.FileExt == "go" {
if options.FileExt == "go" && !options.SkipImport {
if options.Package == "" {
options.Package = getPackageName(options.Path)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment