2 ms·
No ty. I don't like strictness, the strictness of gofmt and the forced layout is enough. Especially I don't like being told to do redundant tasks like commenti
by lakomen 4y ago
No ty. I don't like strictness, the strictness of gofmt and the forced layout is enough.
Especially I don't like being told to do redundant tasks like commenting obviously named functions.
The only thing I'd like to have in gofmt is what goimports does, sorting and dividing imports by local and remote.
What I absolutely hate is an enforced 80 char limit. I write on 4k, I can afford much wider, even when viewing on mobile.
But whatever, that discussion is pointless anyway. Ty but no ty. Moving on.
- mvdan 4y agoYou might be getting confused. gofmt does not warn about lacking comments, that was golint, which has since been deprecated. gofmt does not divide or re-join imports into groups, but gofumpt does :) Neither gofmt nor gofumpt enforce a character limit on lines. Some form of line length limit is the most common gofumpt feature request by far, but one that I haven't been brave enough to release in any form. Perhaps read gofumpt's README, it has a lot more information.