Skip to content

Commit

Permalink
chore: os.SEEK_END has been deprecated since Go 1.7 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Jul 25, 2023
1 parent 45965ac commit bd36c74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/binary"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
Expand Down Expand Up @@ -59,7 +60,7 @@ func appendFile(path string, data []byte) error {
return err
}
defer f.Close()
if _, err = f.Seek(0, os.SEEK_END); err != nil {
if _, err = f.Seek(0, io.SeekEnd); err != nil {
return err
}
_, err = f.Write(data)
Expand Down

0 comments on commit bd36c74

Please sign in to comment.