We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
err == io.EOF
*bytes.Reader
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this should be good:
type CompressedFile struct { reader *bytes.Reader zipPath string } func (c CompressedFile) Read(p []byte) (int, error) { n, err := c.reader.Read(p) if err == io.EOF { // report error here return n, io.EOF } return n, errors.Wrapf(err, "can't read from reader %s", c.zipPath) }
( and yes, I know I should use io.Reader here instead of *bytes.Reader...
io.Reader
The text was updated successfully, but these errors were encountered:
bytes.Reader
910bb79
Thanks for reporting!
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
this should be good:
( and yes, I know I should use
io.Reader
here instead of*bytes.Reader
...The text was updated successfully, but these errors were encountered: