gopls v0.18.0 quietly released a new "modernize" tool which automatically adjusts your #golang code to use newer std APIs and language features!
modernize -fix ./...
For example: range over int, min and max, slices APIs like Contains or Delete.
https://github.com/golang/tools/releases/tag/gopls%2Fv0.18.0
modernize -fix ./...
For example: range over int, min and max, slices APIs like Contains or Delete.
https://github.com/golang/tools/releases/tag/gopls%2Fv0.18.0
Comments