Gofumpt: A stricter gofmt
github.com
Gofumpt: A stricter gofmt
1–10 of 93 posts
Re: Gofumpt: A stricter gofmt
#2interfacer - Automatically Suggest Interface Types in Go
https://github.com/mvdan/interfacer
https://news.ycombinator.com/item?id=11397905 (9 comments)
shmfmt - A shell parser, formatter, and interpreter with BASH support
(Submitted often but not yet discussed)
---
/me whispers: Hint: You could be that guy [1] (or gal, they, it, etc):
/submit shmfmt
Feel free to leave a link to your submission here for other inquisitive parties to stumble upon.
[1] https://youtube.com/watch?v=HQXTxG8JBAw&t=105s
Transparency: Clip is mildly offensive
Re: Gofumpt: A stricter gofmt
#3See also: interfacer - Automatically Suggest Interface Types in Go https://github.com/mvdan/interfacer https://news.ycombinator.com/item?id=11397905 (9 comments) shmfmt - A shell parser, formatter, and interpreter with BASH support https://github.com/mvdan/sh (Submitted often but not yet discussed) --- /me whispers: Hint: You could be that guy [1] (or gal, they, it, etc): /submit shmfmt Feel free to leave a link to y…
Re: Gofumpt: A stricter gofmt
#4Gofmt/gofumpt, but as a special case, formats
if err != nil { return err }
on a single line.Not trolling, genuinely interested.
Re: Gofumpt: A stricter gofmt
#5Re: Gofumpt: A stricter gofmt
#6See also: interfacer - Automatically Suggest Interface Types in Go https://github.com/mvdan/interfacer https://news.ycombinator.com/item?id=11397905 (9 comments) shmfmt - A shell parser, formatter, and interpreter with BASH support https://github.com/mvdan/sh (Submitted often but not yet discussed) --- /me whispers: Hint: You could be that guy [1] (or gal, they, it, etc): /submit shmfmt Feel free to leave a link to y…
Re: Gofumpt: A stricter gofmt
#7gofmt being the official tool avoids bikeshedding over formatting rules. Diverging from the default seems like a step backwards, doesn't it?
---
Re: Gofumpt: A stricter gofmt
#8gofmt being the official tool avoids bikeshedding over formatting rules. Diverging from the default seems like a step backwards, doesn't it?
In the roadmap section[1] the author says it's more of an experiment with a possibility that some of the rules might end up in the original 'gofmt' tool. While I agree that Go having a de facto formatter built in is wonderful, there are some absolutely fantastic additions in 'gofumpt' that I do hope wind up in 'gofmt' --- [1]: https://github.com/mvdan/gofumpt#roadmap
Re: Gofumpt: A stricter gofmt
#9gofmt being the official tool avoids bikeshedding over formatting rules. Diverging from the default seems like a step backwards, doesn't it?
Re: Gofumpt: A stricter gofmt
#10Anyone know if the following exists? Gofmt/gofumpt, but as a special case, formats if err != nil { return err } on a single line. Not trolling, genuinely interested.