Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply modernization fixes #1921

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Limero
Copy link
Contributor

@Limero Limero commented Feb 22, 2025

gopls 1.18 brings a new modernize analyzer that "reports hint diagnostics suggesting ways that Go code could be updated to take advantage of new Go language features and standard library APIs."

This PR applies all those changes with go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./... so anyone using the latest gopls won't get hints about them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant