Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/goimports: format is not the same #32165
What version of Go are you using (
Thanks for the report.
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.
I'm closing here, since this is WAI.