diff --git a/filter/filter.go b/filter/filter.go
index <HASH>..<HASH> 100644
--- a/filter/filter.go
+++ b/filter/filter.go
@@ -111,7 +111,7 @@ func (d *dir) IsDir() bool        { return true }
 func (d *dir) Sys() interface{}   { return nil }
 
 func (d *dir) Seek(offset int64, whence int) (int64, error) {
-	if offset == 0 && whence == os.SEEK_SET {
+	if offset == 0 && whence == io.SeekStart {
 		d.pos = 0
 		return 0, nil
 	}
diff --git a/union/union.go b/union/union.go
index <HASH>..<HASH> 100644
--- a/union/union.go
+++ b/union/union.go
@@ -106,7 +106,7 @@ type dir struct {
 }
 
 func (d *dir) Seek(offset int64, whence int) (int64, error) {
-	if offset == 0 && whence == os.SEEK_SET {
+	if offset == 0 && whence == io.SeekStart {
 		d.pos = 0
 		return 0, nil
 	}
Replace deprecated os.SEEK_{SET,CUR,END} with io.Seek{Start,Current,End}.