go: drop deprecated ioutil

This commit is contained in:
Jörg Thalheim 2023-02-28 09:44:31 +01:00
parent 8da6068e91
commit 4e50640bac
4 changed files with 14 additions and 18 deletions

View file

@ -3,7 +3,6 @@ package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
@ -28,7 +27,7 @@ func TestShellHook(t *testing.T) {
_, filename, _, _ := runtime.Caller(0)
assets = path.Join(path.Dir(filename), "test-assets")
}
tempdir, err := ioutil.TempDir("", "testdir")
tempdir, err := os.MkdirTemp("", "testdir")
ok(t, err)
defer os.RemoveAll(tempdir)