update to use new io.Seek consts, require min go1.7

This commit is contained in:
David Howden
2018-04-02 11:06:41 +10:00
parent 1264d437b3
commit e80a3fa76a
9 changed files with 24 additions and 30 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ package tag
import (
"errors"
"io"
"os"
)
// blockType is a type which represents an enumeration of valid FLAC blocks
@@ -80,7 +79,7 @@ func (m *metadataFLAC) readFLACMetadataBlock(r io.ReadSeeker) (last bool, err er
err = m.readPictureBlock(r)
default:
_, err = r.Seek(int64(blockLen), os.SEEK_CUR)
_, err = r.Seek(int64(blockLen), io.SeekCurrent)
}
return
}