Upgrade Go to 1.22

Proprietary

Raise the go directive in go.mod to Go 1.22, unless it already targets 1.22 or newer.

org.openrewrite.golang.migration.UpgradeGoTo122
mod run . --recipe=org.openrewrite.golang.migration.UpgradeGoTo122

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.