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

@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"math"
"reflect"
)
@ -382,7 +381,7 @@ func (d *Decoder) rawRead(tagType byte) error {
return err
}
if _, err = io.CopyN(ioutil.Discard, d.r, int64(aryLen)); err != nil {
if _, err = io.CopyN(io.Discard, d.r, int64(aryLen)); err != nil {
return err
}
case TagIntArray: