← All recipes
Moderne licensed

Upgrade Go to 1.18

Recipe IDorg.openrewrite.golang.migration.UpgradeGoTo118Artifactgithub.com/moderneinc/recipes-go

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

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.golang.migration.UpgradeGoTo118

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go