Drop deprecated ioutil
`ioutil` has been deprecated by golang. All the code in `ioutil` just forwards functionality to code in either the `io` or `os` packages. See https://github.com/golang/go/pull/51961 for more info. Signed-off-by: Jeff Widman <jeff@jeffwidman.com>
This commit is contained in:
@@ -18,7 +18,7 @@ package compression
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
@@ -31,7 +31,7 @@ func BenchmarkDecompression(b *testing.B) {
|
||||
resp, err := http.Get(benchmarkTestDataURL)
|
||||
require.NoError(b, err)
|
||||
|
||||
data, err := ioutil.ReadAll(resp.Body)
|
||||
data, err := io.ReadAll(resp.Body)
|
||||
require.NoError(b, err)
|
||||
resp.Body.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user