Prefer string comparison operators

Proprietary

Replace strings.Compare(a, b) == 0 with a == b, strings.Compare(a, b) != 0 with a != b, strings.Compare(a, b) < 0 with a < b, and strings.Compare(a, b) > 0 with a > b.

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

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