Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
os.ReadDir
for lightweight directory reading
`os.ReadDir` was added in Go 1.16 as part of the deprecation of `ioutil` package. It is a more efficient implementation than `ioutil.ReadDir` as stated here https://pkg.go.dev/io/ioutil#ReadDir. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> (cherry picked from commit e12f357)
- Loading branch information