checksum
checksum copied to clipboard
io.EOF and bytesRead question
I question whether to use buf[:bytesRead] before checking io.EOF since it is possible to get io.EOF and data at the same time, see io.Reader documentation.