In Go, filepath.WalkDir uses os.ReadDir() which sorts all the entries which is wasteful and it makes me mad.
This repository contains a version of both functions, sorting removed.
You're supposed to simply copy the two .go files into your own project, this doesn't need to be a package...