This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 41 · Oct 6 – 12, 2025

go fix overhaul

Worth knowingtooling

What changed
go fix now behaves like go vet, using the same analysis framework and a new -fixtool extension. The obsolete -fix=name,… flag is removed, and -diff is accepted by both commands.
Production impact
The source does not say.
Try it
Run go fix -diff on a package to see the diff output.
Source
github.com/golang/go/issues/71859

Understand it, then run it

go fix used to be a separate command that applied a handful of automatic code changes. The new change makes it work the same way as go vet, the tool that reports problems. Now go fix runs the same analysis engine that go vet uses, but instead of just printing diagnostics it applies the suggested fixes. The old flag -fix=name,… is gone, and both commands accept a -diff flag to show what changes would be made without applying them.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed