Hacker GitHub

← All repos

mvdan/gofumpt

View on GitHub ↗ ★ 4,107 Go

A stricter gofmt

8 mentions on Hacker News by 8 people: 3 stories, 5 comments · first 2020-11-04 · latest 2026-07-26

Mentions per year 8 mentions · busiest year 2023 (2)
20082026
  1. …evidenced by the existence of golines[0] or gofumpt[1]. 0: https://github.com/golangci/golines/ 1: https://github.com/mvdan/gofumpt
  2. Good news: there are tools like https://github.com/mvdan/gofumpt which fork gofmt and enforce stricter rules (while remaining invariant under gofmt).
    comment by duskwuff · 2025-09-08 · in Formatting code should be unnecessary
  3. …are some absolutely fantastic additions in 'gofumpt' that I do hope wind up in 'gofmt' --- [1]: https://github.com/mvdan/gofumpt#roadmap
    comment by usrme · 2023-02-11 · in Gofumpt: A stricter gofmt
  4. you might want to check out gofumpt too, if you haven't already: https://github.com/mvdan/gofumpt
  5. https://github.com/mvdan/gofumpt Drop in replacement for `go fmt` and probably does most of what you want.