top | item 44886773

(no title)

ayuhito | 6 months ago

In fact, v1 code usually uses v2 code under the hood, but with different options to maintain backwards compatibility.

You still get performance improvements even if you don’t switch over to the new import!

discuss

order

Grokify|6 months ago

A good example is io/ioutil. It's useful to migrate to eliminate the deprecation messages, but you don't need to do it right away.

majewsky|6 months ago

Also, most of this can be automated with `go install golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest && modernize -fix ./...`