You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We intentionally leave this to local custom - gofmt and goimports will never move imports across blank lines in the import block. So if I want path with the others, I can do that, and gofmt/goimports respect that. And if you want all your renamed imports together, you can do that, and gofmt/goimports respect that too.
i.e. imports separated by blank lines are considered separate and that is intentional. Hence gofmt/goimports will not dedup entries beyond a single import group.
Hey there I am working on go language version 1.12 darwin/amd64. I have saved my go import as the following:
And in this case, only in this case, goimports will not be deleting duplicate imports automatically. I tried with terminal command, emacs and vscode.
The text was updated successfully, but these errors were encountered: