Radar · Go · Archive · Week 41 · Oct 6 – 12, 2025
go fix overhaul
Worth knowingtooling
- What changed
go fixnow behaves likego vet, using the same analysis framework and a new-fixtoolextension. The obsolete-fix=name,…flag is removed, and-diffis accepted by both commands.- Production impact
- The source does not say.
- Try it
- Run
go fix -diffon 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