Use io.SeekStart/End/Current constants now for go1.7+ #2154

This commit is contained in:
Nick Craig-Wood
2018-04-06 19:53:06 +01:00
parent 80588a5a6b
commit e5be471ce0
24 changed files with 64 additions and 63 deletions

View File

@@ -107,9 +107,9 @@ func (cr *ChunkedReader) RangeSeek(offset int64, whence int, length int64) (int6
size := cr.o.Size()
switch whence {
case 0:
case io.SeekStart:
cr.offset = 0
case 2:
case io.SeekEnd:
cr.offset = size
}
cr.chunkOffset = cr.offset + offset