x/tools/cmd/goimports: bad sorting cannot be fixed completely #36140
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What did you do?
I have some code with wrong import group,
this is the demo code:
What did you expect to see?
What did you see instead?
the
strings
andgolang.org/x/tools/go/ast/inspector
are at the wrong group:if the raw file's import section is like this,
goimports
can got the right code:The text was updated successfully, but these errors were encountered: