Re:gofumpt: It's like gofmt except more strict
by mvdan on Saturday February 11, 2023 @11:09AM
(#34753558)
You 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.
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.