From 3e7f535beae601d334186f7316af957bc24bd865 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Fri, 11 Nov 2016 16:31:04 +0100 Subject: utils/fs: add ReadAt to memory file and tests. (#122) * memory files now implement io.ReaderAt. * tests now check ReadAt behaviour. --- utils/fs/os/os.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/fs/os/os.go') 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) } -- cgit