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:
@@ -19,7 +19,6 @@ package client
|
||||
import (
|
||||
"archive/tar"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@@ -46,7 +45,7 @@ func TestExport(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
dstFile, err := ioutil.TempFile("", "export-import-test")
|
||||
dstFile, err := os.CreateTemp("", "export-import-test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user