You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
renthraysk opened this issue
Mar 29, 2025
· 5 comments
Labels
BugReportIssues describing a possible bug in the Go implementation.goplsIssues related to the Go language server, gopls.ToolsThis label describes issues relating to any tools in the x/tools repository.
A suggestion to replace the implementation of maps.Copy() with a call to maps.Copy().
What did you expect to see?
No suggestion.
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Mar 29, 2025
Hi @renthraysk , I think the modernize has supported this feature already. You can go install golang.org/x/tools/gopls/internal/analysis/modernize and then run modernize -fix <your-pkg> to fix this.
BugReportIssues describing a possible bug in the Go implementation.goplsIssues related to the Go language server, gopls.ToolsThis label describes issues relating to any tools in the x/tools repository.
Go version
go version go1.24.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Open maps/maps.go from the standard library.
What did you see happen?
A suggestion to replace the implementation of maps.Copy() with a call to maps.Copy().
What did you expect to see?
No suggestion.
The text was updated successfully, but these errors were encountered: