afero icon indicating copy to clipboard operation
afero copied to clipboard

mem.File.Read should behave like os.File when calling Read

Open rzajac opened this issue 4 years ago • 0 comments

Currently when you call Read with byte slice longer then number of bytes in fileData.data slice the passed buffer is filled properly but no io.EOF error is returned. This is not how os.File handles this case.

rzajac avatar Nov 13 '20 22:11 rzajac