]> Cypherpunks repositories - gostls13.git/commit
io/fs: document requirement that ReadDir return an unwrapped io.EOF
authorDamien Neil <dneil@google.com>
Wed, 7 Jul 2021 16:32:17 +0000 (09:32 -0700)
committerDamien Neil <dneil@google.com>
Tue, 17 May 2022 01:50:34 +0000 (01:50 +0000)
commitaedf298daf508b564e4dddc7687fff8822315a5e
tree485ac77706ac3634ec65a3124ac6942a043c9c58
parentf2b1cde544d190e1f4642ef6f4ac8ef9ce31a0c3
io/fs: document requirement that ReadDir return an unwrapped io.EOF

This requirement ensures that ReadDir implementations are as compatible
as possible with "*os.File".ReadDir.

The testing/fstest package already tests for equality to io.EOF.

Updates #47062.
Fixes #47086.

Change-Id: I54f911a34e507a3db0abc4da55a19b7a50b35041
Reviewed-on: https://go-review.googlesource.com/c/go/+/333149
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/io/fs/fs.go