Our great sponsors
-
pre-commit-golang
Pre-commit hooks for Golang with support for monorepos, the ability to pass arguments and environment variables to all hooks, and the ability to invoke custom go tools.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
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
For those who may be interested, my go pre-commit hooks package has built-in support for gofumpt (along with a bunch if other linters):
https://github.com/TekWizely/pre-commit-golang
My bad, I completely screwed this up... the as of yet undiscussed project is:
https://github.com/mvdan/sh
(not shmfmt)
Related posts
- Wildcard pattern matching. Review and feedback are MOSTLY welcome and appreciate 🥰
- Ask HN: What software sparks joy when using?
- New to go, suggestions for non-web projects.
- I have this code On Playground.. It is very simplified... but when reading from file it breaks and cannot handle rune characters.... The strings.Replace function just stops working
- Shfmt – format shell programs