proposal: cmd/fix: apply modernizers #71859
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
Proposal
Refactoring
Issues related to refactoring tools
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Milestone
Proposal Details
go fix
should have a type of fix calledmodernize
that applies modernizers.As an example, running
go fix
would change all occurrences ofinterface{}
toany
, provided the identifierany
is not shadowed.For the current set of modernizers, see https://go.googlesource.com/tools/+/refs/heads/master/gopls/internal/analysis/modernize.
The text was updated successfully, but these errors were encountered: