Find mapstructure.Error usage
Recipe ID
org.openrewrite.golang.migration.FindMapstructureErrorUsageArtifactgithub.com/moderneinc/recipes-goMark every reference to mapstructure.Error, the one github.com/mitchellh/mapstructure export that github.com/go-viper/mapstructure/v2 dropped. v2 joins its decode failures with errors.Join and exposes Error as an interface, so code reading the struct's Errors []string field has to be reworked by hand before the module can move.
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.FindMapstructureErrorUsageIf the recipe isn’t available locally, install it with:
mod config recipes go install github.com/moderneinc/recipes-go