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
My requested feature is NOT a breaking change, it's back compatible.
I think it should be a simple change. If you are ok for the feature, I will provide the implementation with testing.
TIA.
The text was updated successfully, but these errors were encountered:
seankhliao
changed the title
proposal: goimports: Support multiple groups for imported packages via -local
proposal: x/tools/cmd/goimports: Support multiple groups for imported packages via -local
Jun 21, 2023
seankhliao
changed the title
proposal: x/tools/cmd/goimports: Support multiple groups for imported packages via -local
proposal: x/tools/cmd/goimports: support multiple groups for imported packages via -local
Jun 21, 2023
Hi,
I would like to automatically group the imported packages into 4 groups.
It can't be done by the current
goimports
, because the-local
for thegoimports
only gets a string.For example, I have a go source file below:
By using
goimports -local github.com/current foo.go
, I will have:I want
goimports
can support the arguments like:goimports -local github.com/current -local github.com/company foo.go
.The expectation is as below.
My requested feature is NOT a breaking change, it's back compatible.
I think it should be a simple change. If you are ok for the feature, I will provide the implementation with testing.
TIA.
The text was updated successfully, but these errors were encountered: