Install latest/stable of A stricter gofmt
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Generate an embeddable card to be shared on external websites.
Enforce a stricter format than gofmt, while being backwards compatible. That is, gofumpt is happy with a subset of the formats that gofmt is happy with.
The tool is a fork of gofmt as of Go 1.25.0, and requires Go 1.24 or later. It can be used as a drop-in replacement to format your Go code, and running gofmt after gofumpt should produce no changes.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.