modernize command
The modernize command suggests (or, with -fix, applies) fixes that clarify Go code by using more modern features.
See golang.org/x/tools/go/analysis/passes/modernize for details.
- Version
- v0.41.0
- Published
- Jan 12, 2026
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 hour ago –
Tools for package owners.