Re: [go-nuts] Semantics of ReadDirFile.ReadDir

2021-02-19 Thread Piotr Wieczorek
Thanks! piątek, 19 lutego 2021 o 03:21:54 UTC+1 Ian Lance Taylor napisał(a): > On Thu, Feb 18, 2021 at 4:02 PM Piotr Wieczorek wrote: > > > > 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:

Re: [go-nuts] Semantics of ReadDirFile.ReadDir

2021-02-18 Thread Ian Lance Taylor
On Thu, Feb 18, 2021 at 4:02 PM Piotr Wieczorek wrote: > > 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 o

[go-nuts] Semantics of ReadDirFile.ReadDir

2021-02-18 Thread Piotr Wieczorek
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