lint: remove depreciated io/ioutil

As of Go 1.16, functionality provided in io/ioutil has been depreciated
in favour of the io or os packages. Now that Go has been
upgraded in go.mod, the linter will not pass without these changes.
This commit is contained in:
ffranr
2023-01-27 13:14:05 +00:00
parent 73ed7bfc52
commit db30c8384d
8 changed files with 16 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"context"
"crypto/sha256"
"io/ioutil"
"net/url"
"os"
"testing"
@@ -22,7 +21,7 @@ import (
func etcdSetup(t *testing.T) (*clientv3.Client, func()) {
t.Helper()
tempDir, err := ioutil.TempDir("", "etcd")
tempDir, err := os.MkdirTemp("", "etcd")
if err != nil {
t.Fatalf("unable to create temp dir: %v", err)
}