github mvdan/gofumpt v0.12.0

2 hours ago

This release is based on Go 1.27's gofmt, and requires Go 1.26 or later.

A standard library import carrying a doc or inline comment is no longer moved into the top import group, as the comment stayed behind and ended up detached at the bottom of the group. See #289.

Moving a standard library import up no longer leaves an empty line where it used to be, which split the remaining imports into extra groups. See #225.

A copyright header or package doc no longer makes gofumpt treat a single-line first declaration as multi-line, adding an empty line after it.

An assignment whose right-hand side is separated by a comment is now left alone, as merging the lines produced output which gofmt would change back.

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

Binaries built on go version go1.27.1 linux/amd64 with:

CGO_ENABLED=0 go build -trimpath -ldflags="-w -s"

Don't miss a new gofumpt release

NewReleases is sending notifications on new releases.