Hi, I'm writing a type implementing ReadDirFile interface, and I have some doubts how I should implement ReadDir method. The comment says on one hand: "Subsequent calls on the same file will yield further DirEntry values." and on the other "If n <= 0, ReadDir returns all the DirEntry values from the directory // in a single slice.". So what should be returned if user first calls dir.ReadDir(1) and next dir.ReadDir(0)? Should the second call return all the DirEntry values or only the further ones?
Best, Piotr -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d60346ff-f84a-45aa-820e-4c2dad500c24n%40googlegroups.com.