1
0
mirror of https://github.com/pbnjay/grate.git synced 2025-03-04 16:16:03 +02:00

go1.16 isn't officialy out yet

This commit is contained in:
Jeremy Jay 2021-02-16 17:08:54 -05:00
parent 792f566b59
commit 8709521063
2 changed files with 3 additions and 2 deletions

2
go.mod
View File

@ -1,3 +1,3 @@
module github.com/pbnjay/grate
go 1.16
go 1.15

View File

@ -11,6 +11,7 @@ import (
"encoding/binary"
"errors"
"io"
"io/ioutil"
"log"
"sync"
@ -66,7 +67,7 @@ func Open(filename string) (grate.Source, error) {
if err != nil {
return nil, grate.WrapErr(err, grate.ErrNotInFormat)
}
raw, err := io.ReadAll(rdr)
raw, err := ioutil.ReadAll(rdr)
if err != nil {
return nil, err
}