modern-go - Modernize Go code with version-aware idioms
Modernizes Go source files with version-appropriate idioms, APIs, and language features based on the project's go.mod version.
Tags
Updated: 2026-11-06Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Detect Go version
- Find scoped Go files
- Apply version-gated transformations
- Exclude specified directories
- Print change summary
Inputs
- Go project
- go.mod file
- Target file or directory
Outputs
- Modified Go source files
- Change summary
- Skipped transformation summary
Requirements
- Go project with go.mod
- Go version directive in go.mod
