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
@@ -18,7 +18,6 @@ import (
"errors"
"fmt"
"io"
"os"
)
// ErrNoTagsFound is the error returned by ReadFrom when the metadata format
@@ -34,7 +33,7 @@ func ReadFrom(r io.ReadSeeker) (Metadata, error) {
return nil, err
}
_, err = r.Seek(-11, os.SEEK_CUR)
_, err = r.Seek(-11, io.SeekCurrent)
if err != nil {
return nil, fmt.Errorf("could not seek back to original position: %v", err)
}