Find mapstructure.Error usage

Proprietary

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

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

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