← All recipes
Moderne licensed

Find deprecated sync/atomic functions

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

Find deprecated sync/atomic free-function calls (e.g. atomic.AddInt32) that should be migrated to the type-safe atomic types introduced in Go 1.19 (e.g. atomic.Int32).

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.FindDeprecatedAtomicFunctions

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

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