Swap mitchellh/mapstructure imports to go-viper/mapstructure/v2
ProprietaryRepoint every github.com/mitchellh/mapstructure import at github.com/go-viper/mapstructure/v2, the maintained fork. The package name is unchanged, so call sites stay as written; only the import path and its type attribution move. A file naming mapstructure.Error, the one export v2 dropped, is left alone — see FindMapstructureErrorUsage.
org. openrewrite. golang. migration. SwapMapstructureImportsmod run . --recipe= org. openrewrite. golang. migration. SwapMapstructureImportsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.