As listed in #12438, we need to enable the modernize linter. It's marked as high-effort, but actually it's low-effort because the linter supports auto-fix. We can easily fix all issues with the one command:
golangci-lint run --enable-only modernize --fix
As listed in #12438, we need to enable the
modernizelinter. It's marked as high-effort, but actually it's low-effort because the linter supports auto-fix. We can easily fix all issues with the one command:golangci-lint run --enable-only modernize --fix