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
+2 -1
View File
@@ -10,6 +10,7 @@ package main
import (
"flag"
"fmt"
"io"
"net/url"
"os"
"path/filepath"
@@ -175,7 +176,7 @@ func (p *processor) do(ch <-chan string) {
}
if *sum {
_, err = tf.Seek(0, os.SEEK_SET)
_, err = tf.Seek(0, io.SeekStart)
if err != nil {
fmt.Println("DIED:", path, "error seeking back to 0:", err)
return