Prefer strings.EqualFold (single-sided)

Proprietary

Replace strings.ToLower(s) == t and strings.ToUpper(s) == t with strings.EqualFold(s, t).

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

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