Format go.mod
Recipe ID
org.openrewrite.golang.migration.FormatGoModArtifactgithub.com/moderneinc/recipes-goSort the entries of each factored require ( … ) block in go.mod by module path, matching go mod tidy ordering. Versions and // indirect markers travel with their entry; only the ordering changes.
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.FormatGoModIf the recipe isn’t available locally, install it with:
mod config recipes go install github.com/moderneinc/recipes-go