Skip to content

v0.4.0

Compare
Choose a tag to compare
@mvdan mvdan released this 27 Sep 09:45
· 43 commits to master since this release

This release is based on Go 1.19's gofmt, and requires Go 1.18 or later.
We recommend building gofumpt with Go 1.19 for the best formatting results.

The jump from Go 1.18 brings diffing in pure Go, removing the need to exec diff,
and a small parsing speed-up thanks to go/parser.SkipObjectResolution.

The following formatting fixes are included as well:

  • Allow grouping declarations with comments - #212
  • Properly measure the length of case clauses - #217
  • Fix a few crashes found by Go's native fuzzing

Binaries built on go version go1.19.1 linux/amd64 via a shell script.

Consider becoming a sponsor if you benefit from the work that went into this release!