Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/gofmt: gofmt is inconsistent #24609
In following code, both functions have argument
But the first case, there will be spaces inserted around
It's not a bug, but a feature: https://golang.org/doc/effective_go.html#formatting
Check this out: https://play.golang.org/p/JiiUb_kjcXC - it's already properly formatted.
This is indeed intended behavior. Just like
It gets more useful in cases like