forked from vmware-archive/go-nfs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Seek() method to nfs.File (vmware-archive#5)
* Add Seek() method to nfs.File Implement Seek() as required by io.Seeker() interface specification. As there is no predefined interface that implements both Read(), Write(), Seek() and Close(), return *nfs.File from Open() and OpenFile() calls instead of io.* interfaces. So now nfs.File implements even more interfaces, including io.ReadSeeker(), io.ReadWriteCloser() and so on. * Use errors.New() instead of fmt.Errorf() * Don't panic if whence is invalid
- Loading branch information
1 parent
2e54380
commit 5547f82
Showing
1 changed file
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters