Gofumpt: It's like gofmt except more strict

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SaaSHub - Software Alternatives and Reviews
  • gofumpt

    A stricter gofmt

    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

  • 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.

    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):


  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • sh

    A shell parser, formatter, and interpreter with bash support; includes shfmt (by mvdan)

    My bad, I completely screwed this up... the as of yet undiscussed project is:


    (not shmfmt)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts