Prefer strings.NewReader
ProprietaryReplace bytes.NewReader([]byte(s)) with strings.NewReader(s) to avoid an unnecessary string-to-byte-slice conversion.
org. openrewrite. golang. codequality. PreferStringsNewReadermod run . --recipe= org. openrewrite. golang. codequality. PreferStringsNewReaderInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.