mirror of
https://git.sr.ht/~eliasnaur/gio-cmd
synced 2026-07-06 18:05:33 +00:00
gogio: replace deprecated calls
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user