diff options
author | Santiago M. Mola <santi@mola.io> | 2016-10-19 17:43:08 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-10-19 17:43:08 +0200 |
commit | 176cdac72c9c6eb8d875c90664a433d94e968438 (patch) | |
tree | f00be20995c197bdfd67ac6f12102f93e45d0737 /utils/fs/os.go | |
parent | 7bd4f1d2b796de5c86466b40eaa561d4fd27931b (diff) | |
download | go-git-176cdac72c9c6eb8d875c90664a433d94e968438.tar.gz |
OSFile: implement io.ReaderAt. (#90)
Diffstat (limited to 'utils/fs/os.go')
-rw-r--r-- | utils/fs/os.go | 4 |
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) +} |