diff options
author | Santiago M. Mola <santi@mola.io> | 2016-11-11 16:31:04 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-11 16:31:04 +0100 |
commit | 3e7f535beae601d334186f7316af957bc24bd865 (patch) | |
tree | 4f1fb5da0c743070b939bd1edfe31157009c915f /utils/fs/os/os.go | |
parent | ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (diff) | |
download | go-git-3e7f535beae601d334186f7316af957bc24bd865.tar.gz |
utils/fs: add ReadAt to memory file and tests. (#122)
* memory files now implement io.ReaderAt.
* tests now check ReadAt behaviour.
Diffstat (limited to 'utils/fs/os/os.go')
-rw-r--r-- | utils/fs/os/os.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fs/os/os.go b/utils/fs/os/os.go index 4f4e651..5f9df67 100644 --- a/utils/fs/os/os.go +++ b/utils/fs/os/os.go @@ -178,6 +178,6 @@ func (f *osFile) Close() error { return f.file.Close() } -func (f *osFile) ReadAt(p []byte, off int64) (n int, err error) { +func (f *osFile) ReadAt(p []byte, off int64) (int, error) { return f.file.ReadAt(p, off) } |