Prefer bytes.Contains over bytes.Index comparison

Proprietary

Replace bytes.Index(b, sub) != -1 and similar patterns with bytes.Contains(b, sub).

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

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