Open kolyshkin opened 4 days ago
When working on the code in https://github.com/golang/go, gofumpt insists on placing imports of packages with internal/ prefix to a separate group. Here's an example:
internal/
diff --git a/src/os/os_test.go b/src/os/os_test.go index 9519aa0fc6..01f7932e4f 100644 --- a/src/os/os_test.go +++ b/src/os/os_test.go @@ -9,7 +9,6 @@ import ( "errors" "flag" "fmt" - "internal/testenv" "io" "io/fs" "log" @@ -26,6 +25,8 @@ import ( "testing" "testing/fstest" "time" + + "internal/testenv" )
@ianlancetaylor mentioned that this is not how they want their code to be formatted.
If this is by design, please close.
Note that this is a special case for the Go standard library only.
When working on the code in https://github.com/golang/go, gofumpt insists on placing imports of packages with
internal/
prefix to a separate group. Here's an example:@ianlancetaylor mentioned that this is not how they want their code to be formatted.
If this is by design, please close.