Prefer os.ReadDir

Proprietary

Replace deprecated ioutil.ReadDir(name) with os.ReadDir(name) (Go 1.16+).

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

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