goplsに含まれるmodernizeコマンド
This content is a draft and will not be included in production builds.
gopls に含まれているツールで、以下を実行すると旧来の記述を現代の書き方に変換するらしい。
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test ./...internal 以下だけど本当に実行できるのか。