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