We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gofumpt --version
v0.4.1-0.20230125043819-8b5f734ef391 (go1.20.1)
Before:
package main func f[ T any, ](v T) (ok bool) { _ = v return true } func main() { _ = f(42) }
After:
package main func f[ T any, ](v T, ) (ok bool) { _ = v return true } func main() { _ = f(42) }
Notice how there is now a comma and a newline after v T. Go 1.20.1's gofmt does not add it. In my opinion, gofumpt should not add this newline.
v T
gofmt
gofumpt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Before:
After:
Notice how there is now a comma and a newline after
v T
. Go 1.20.1'sgofmt
does not add it. In my opinion,gofumpt
should not add this newline.The text was updated successfully, but these errors were encountered: