File System Interfaces for Go – Draft Design
os.Readdir has to be one of the stupidest, most broken interfaces I've ever seen.<p>Reading the whole dir into an array is bad enough as it is, but they even call stat() on every file too.