This matches what upstream Go does. This also means len(b) == 0 successfully reads 0 bytes without any extra logic. The tests in archive/zip test for this behaviour. |
||
|---|---|---|
| .. | ||
| crypto/rand | ||
| device | ||
| examples | ||
| internal | ||
| machine | ||
| net | ||
| os | ||
| reflect | ||
| runtime | ||
| sync | ||
| syscall | ||
| testing | ||