aboutsummaryrefslogtreecommitdiffstats
path: root/utils/fs/os.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2016-10-19 17:43:08 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-10-19 17:43:08 +0200
commit176cdac72c9c6eb8d875c90664a433d94e968438 (patch)
treef00be20995c197bdfd67ac6f12102f93e45d0737 /utils/fs/os.go
parent7bd4f1d2b796de5c86466b40eaa561d4fd27931b (diff)
downloadgo-git-176cdac72c9c6eb8d875c90664a433d94e968438.tar.gz
OSFile: implement io.ReaderAt. (#90)
Diffstat (limited to 'utils/fs/os.go')
-rw-r--r--utils/fs/os.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/fs/os.go b/utils/fs/os.go
index e775a5a..db45a1a 100644
--- a/utils/fs/os.go
+++ b/utils/fs/os.go
@@ -170,3 +170,7 @@ func (f *OSFile) Close() error {
return f.file.Close()
}
+
+func (f *OSFile) ReadAt(p []byte, off int64) (int, error) {
+ return f.file.ReadAt(p, off)
+}