Change type

Proprietary

Change a Go type reference from one fully qualified name to another.

org.openrewrite.golang.ChangeType

Required

The fully qualified Go type name to replace.

The fully qualified Go type name to use instead.

mod run . --recipe=org.openrewrite.golang.ChangeType \ -P oldFullyQualifiedTypeName=github.com/old/pkg.MyType \ -P newFullyQualifiedTypeName=github.com/new/pkg.MyType

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