3 ms·
another example is when reading from a file using io.Reader. EOF is returned as an error, but you still need to check the slice for any new bytes that we read b
by bouncycastle 3y ago
another example is when reading from a file using io.Reader. EOF is returned as an error, but you still need to check the slice for any new bytes that we read before the EOF. A lot of errors are actually good to have, and still return critical data despite being an "error".