Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: gofmt inconsistent formatting of spacing around operators #34426
What version of Go are you using (
This has been like this probably since the early days of gofmt. For comparison, formatting of various expressions:
I agree that there's little difference between a list of composite literal elements and parameter lists and this is an inconsistency.
It's not clear that we should change it as it would cause quite a bit of churn. If we do, we may want to combine it with some more gofmt cleanups/improvements.