Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
go-plugins
template
Commits
91b35b90
Commit
91b35b90
authored
1 month ago
by
linty
Browse files
Options
Download
Email Patches
Plain Diff
feat: skip import
parent
2a3d09bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
template.go
+1
-1
template.go
with
1 addition
and
1 deletion
+1
-1
template.go
+
1
-
1
View file @
91b35b90
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment