Use bytes.ReplaceAll
ProprietaryReplace bytes.Replace(b, old, new, -1) with bytes.ReplaceAll(b, old, new).
org. openrewrite. golang. codequality. UseBytesReplaceAllmod run . --recipe= org. openrewrite. golang. codequality. UseBytesReplaceAllInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.