Add a missing go directive
ProprietaryAdd a go directive to a go.mod that has none, as go mod tidy always writes one. Defaults to the toolchain version running the recipe, the version go mod tidy would record.
org. openrewrite. golang. migration. AddMissingGoDirectivemod run . --recipe= org. openrewrite. golang. migration. AddMissingGoDirectiveInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.