Prefer hex.EncodeToString over fmt.Sprintf
ProprietaryReplace fmt.Sprintf("%x", data) with hex.EncodeToString(data) for clearer intent and better performance.
org. openrewrite. golang. codequality. PreferHexEncodingmod run . --recipe= org. openrewrite. golang. codequality. PreferHexEncodingInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.