Order imports
Recipe ID
org.openrewrite.golang.OrderImportsArtifactgithub.com/moderneinc/recipes-goSort import lines into stdlib / third-party / local groups. Within each group, entries are alphabetized; non-empty groups are separated by a blank line. Mirrors goimports -w. Local detection uses the sibling go.mod's module path.
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.OrderImportsIf the recipe isn’t available locally, install it with:
mod config recipes go install github.com/moderneinc/recipes-go