Remove calls to Go's deprecated "io/ioutil"

This commit is contained in:
Nigel Tao committed 2021-08-22 11:17:34 +10:00
1 parent 788479dd64
commit 226c476994
31 files changed
+73 -93

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ package cgolz4
import (
"bytes"
"io/ioutil"
"io"
"strings"
"testing"
)
@@ -74,7 +74,7 @@ func TestRoundTrip(tt *testing.T) {
// Uncompress.
{
r.Reset(strings.NewReader(compressed), nil)
gotBytes, err := ioutil.ReadAll(r)
gotBytes, err := io.ReadAll(r)
if err != nil {
r.Close()
tt.Fatalf("i=%d: ReadAll: %v", i, err)