← All recipes
Moderne licensed

Find golang.org/x/exp usage the standard library covers

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

Mark every golang.org/x/exp/slices, /maps and /constraints call and type reference with its standard-library replacement, and warn on the two shapes that do not have one: the numeric constraints, and a boolean comparator passed to a sort function.

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.FindXExpUsage

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

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