-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Open
Labels
AnalysisIssues related to static analysis (vet, x/tools/go/analysis)Issues related to static analysis (vet, x/tools/go/analysis)ProposalRefactoringIssues related to refactoring toolsIssues related to refactoring toolsToolProposalIssues describing a requested change to a Go tool or command-line program.Issues describing a requested change to a Go tool or command-line program.
Milestone
Description
(This proposal is the second of a sequence of two; #73605 is the first. --adonovan)
Proposal Details
go fix
should have a type of fix called modernize
that applies modernizers.
As an example, running go fix
would change all occurrences of interface{}
to any
, provided the identifier any
is not shadowed.
For the current set of modernizers, see https://go.googlesource.com/tools/+/refs/heads/master/gopls/internal/analysis/modernize.
earthboundkid, aslatter, mibk, kscooo, mvdan and 8 more
Metadata
Metadata
Labels
AnalysisIssues related to static analysis (vet, x/tools/go/analysis)Issues related to static analysis (vet, x/tools/go/analysis)ProposalRefactoringIssues related to refactoring toolsIssues related to refactoring toolsToolProposalIssues describing a requested change to a Go tool or command-line program.Issues describing a requested change to a Go tool or command-line program.
Type
Projects
Status
Incoming