Open graarh opened 11 months ago
For example, this imports list
import ( "context" ThisIsWrong "github.com/test" "test/abc" "github.com/something" )
with project name "test" will be sorted to
and should be sorted to
"context" "test/abc" "github.com/something" ThisIsWrong "github.com/test"
Check /reviser/file.go#L205. It should be HasPrefix, not Contains.
HasPrefix
Contains
For example, this imports list
with project name "test" will be sorted to
and should be sorted to
Check /reviser/file.go#L205. It should be
HasPrefix
, notContains
.