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
This is an intentional goimports feature. It was introduced to fix #18051; essentially for two reasons: the fact that it minimizes diff noise when committing, and the fact that switching to the one-line format can misplace comments when there are commented lines between the lines with the packages names in the grouped version, if that is converted to the single-line version.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes in 1.12.5
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When one package is imported in one line
I imported a package
but, I stopped using the package after all and format with goimport.
What did you expect to see?
Import the first package in one line.
What did you see instead?
Import the package with parenthesis.
The text was updated successfully, but these errors were encountered: