← All recipes
Moderne licensed

Avoid nested goroutine

Recipe IDorg.openrewrite.golang.codequality.AvoidNestedGoroutineArtifactgithub.com/moderneinc/recipes-go

Find goroutines launched inside other goroutines. Nested goroutines create hard-to-track concurrency.

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.codequality.AvoidNestedGoroutine

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go