logoalt Hacker News

Mawr11/09/20242 repliesview on HN

It's not irrelevant, it's the entire point. The whole Go ecosystem uses a single formatter. There's no need to force anyone, everyone just uses gofmt. You will not be able to replicate that level of ubiquity easily at all.


Replies

guappa11/11/2024

Not true. Because after running go fmt and pushing our CI fails because of other stylistic concerns that are checked by another tool.

umanwizard11/09/2024

Not really true because you have both gofmt and gofumpt, and gofmt can be run with -s or not, and also lots of projects are using separate linters to enforce maximum line length.

show 1 reply