Prefer buf.String() over string(buf.Bytes())

Proprietary

Replace string(buf.Bytes()) with buf.String() for better performance and readability.

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

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