gogio: replace deprecated calls

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2024-01-09 14:51:45 -05:00
parent cb72b91a92
commit 7a117566ca
6 changed files with 28 additions and 25 deletions
+1 -2
View File
@@ -10,7 +10,6 @@ import (
"image"
"image/color"
"io"
"io/ioutil"
"os"
"os/exec"
"runtime"
@@ -316,7 +315,7 @@ func (d *driverBase) needPrograms(names ...string) {
func (d *driverBase) tempDir(name string) string {
d.Helper()
dir, err := ioutil.TempDir("", name)
dir, err := os.MkdirTemp("", name)
if err != nil {
d.Fatal(err)
}