I\'ve been trying to figure out how to simply list the files and folders in a single directory in Go.
I\'ve found filepath.Walk, but it goes into sub-directories aut
ioutil.ReadDir is a good find, but if you click and look at the source you see that it calls the method Readdir of os.File. If you are okay with the directory order and don't need the list sorted, then this Readdir method is all you need.
ioutil.ReadDir