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.
How to customize gofmt behaviour? #40028
Is it possible to disable or customize some
May be it support some config file? Support for something like
I prefer to keep spaces around math symbols
a = perPage*(pageNumber+checkNextPageCount-1) + 1 records[len(records)-1] // I like with spaces a = perPage * (pageNumber + checkNextPageCount - 1) + 1 records[len(records) - 1]
It is an intentional design choice that there are no configuration options for gofmt. The benefit of eliminating bike shed discussion about formatting choices is considered to be more important than the cost of not permitting people to use their preferred style. The usual saying is that gofmt isn't anybody's preferred style, but it's adequate for everybody.
The usual saying is that gofmt isn't anybody's preferred style, but it's adequate for everybody who still using it.