update to 1.16 and removes usage of "io/ioutil"

This commit is contained in:
Tnze
2021-02-25 12:43:39 +08:00
parent 178c34eacb
commit 9b6f640843
10 changed files with 34 additions and 21 deletions

View File

@ -3,7 +3,7 @@ package nbt
import (
"bytes"
"compress/gzip"
"io/ioutil"
"io"
"reflect"
"testing"
)
@ -225,7 +225,7 @@ func TestMarshal_bigTest(t *testing.T) {
}
rd, _ := gzip.NewReader(bytes.NewReader(bigTestData[:]))
want, err := ioutil.ReadAll(rd)
want, err := io.ReadAll(rd)
if err != nil {
t.Error(err)
}