Prefer strings.Builder WriteString

Proprietary

Replace fmt.Fprintf(&b, "%s", s) with b.WriteString(s) for more efficient string building.

org.openrewrite.golang.codequality.PreferStringsBuilderWriteString
mod run . --recipe=org.openrewrite.golang.codequality.PreferStringsBuilderWriteString

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.