We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There have been several new features that simplifies go code in later versions (go 1.24), like:
range
min
max
slices.Contains()
slices.Concat()
slices.Clone()
fmt.Appedf()
maps.Copy()
it can all be fixed by running:
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
The text was updated successfully, but these errors were encountered:
Link to the docs: https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize#hdr-Analyzer_modernize
Sorry, something went wrong.
Maybe to be considered as a part of #59577.
planner: modernize some package (#60396)
ced1490
ref #60323
planner: modernize some package (#60406)
d5485ee
Successfully merging a pull request may close this issue.
Enhancement
There have been several new features that simplifies go code in later versions (go 1.24), like:
range
over a numbermin
/max
genericsslices.Contains()
slices.Concat()
slices.Clone()
fmt.Appedf()
maps.Copy()
...
it can all be fixed by running:
The text was updated successfully, but these errors were encountered: