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. ▲ 1
    Gofumpt: A Stricter Gofmt
    story by jcbhmr · 2026-01-29 · 0 comments
  3. 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
  4. ▲ 2
    Gofumpt: A Stricter Gofmt
    story by fanf2 · 2025-07-13 · 0 comments
  5. …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
  6. ▲ 98
    Gofumpt: A stricter gofmt
    story by metadat · 2023-02-11 · 88 comments
  7. you might want to check out gofumpt too, if you haven't already: https://github.com/mvdan/gofumpt
  8. https://github.com/mvdan/gofumpt Drop in replacement for `go fmt` and probably does most of what you want.