mvdan/gofumpt
A stricter gofmt observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 83
- age_days: 2713
- days_rel: 37
- days_push: 10
- n_releases_24m: 6
Adoption not part of the score
4068 stars · 134 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
gofumpt is a stricter, backwards-compatible fork of gofmt that formats Go source code with additional idiomatic style rules. It works as a drop-in replacement for gofmt and is also usable as a Go library via its format package.
Use cases
- format go code with stricter rules than gofmt
- enforce idiomatic go style across a codebase
- drop-in replacement for gofmt in ci
- automatically clean up empty lines and formatting in go files
- consistent code formatting independent of go version
When to choose
- you want stricter, more idiomatic formatting than gofmt while staying gofmt-compatible
- you need deterministic formatting regardless of the installed Go toolchain version
- you want a formatter that skips vendor, testdata, and generated files by default
When to avoid
- you prefer standard gofmt output exactly as shipped with Go
- you need gofmt's -r rewrite flag, which gofumpt removed
- your team cannot agree on the extra opinionated rules
Facets
cli-tool · maturity active
formatter cli developer-tools developer-tools programming-languages go cli cross-platform gofmt code-style go-tooling code-formatting command-line
5 sources
- readme: https://github.com/mvdan/gofumpt · fetched 2026-08-28 · 7f8070627bb5
- homepage: https://pkg.go.dev/mvdan.cc/gofumpt · fetched 2026-08-29 · cb3b99bd557b
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/about · fetched 2026-08-29 · 8b6453863a90
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mvdan/gofumpt | main | 94 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem