Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inlineable reader.Seek and no-lock return for bad whence (#577)
* Inlineable reader.Seek and no-lock return for bad whence Couldn't find an elegant way to early exit on bad whence. Using a closure could reduce code duplication slightly, but it's overkill for only 3 cases. Note that returning 0 on an invalid whence is the behavior of `strings.Reader` and `bytes.Reader`. * Update reader.go
- Loading branch information