[tools] go/analysis/passes/modernize: document 'go fix' command

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jul 24, 2026, 2:19:03 PM (2 days ago) Jul 24
to Alan Donovan, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Hongxiang Jiang, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
go/analysis/passes/modernize: document 'go fix' command

Update the modernizer docs to recommend go fix in preference
to the the multichecker-based modernize command.

Also, delete the gopls/internal/analysis/modernize/cmd/modernize
command, which is internal and deprecated. This will break
'go run .../modernize@latest' at the next gopls release.

Fixes golang/go#80510
Change-Id: I5b27787b3afdaf86c5c1222b3cc02ab45c138a38
Auto-Submit: Alan Donovan <adon...@google.com>
Reviewed-by: Hongxiang Jiang <hxj...@golang.org>
Files:
  • M go/analysis/passes/modernize/doc.go
  • D gopls/internal/analysis/modernize/cmd/modernize/main.go
Change size: S
Delta: 2 files changed, 7 insertions(+), 25 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I5b27787b3afdaf86c5c1222b3cc02ab45c138a38
Gerrit-Change-Number: 804000
Gerrit-PatchSet: 3
Gerrit-Owner: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages