aboutsummaryrefslogtreecommitdiff
path: root/src/text/template/examplefiles_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/text/template/examplefiles_test.go')
-rw-r--r--src/text/template/examplefiles_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/text/template/examplefiles_test.go b/src/text/template/examplefiles_test.go
index a15c7a62a3..6534ee3315 100644
--- a/src/text/template/examplefiles_test.go
+++ b/src/text/template/examplefiles_test.go
@@ -6,7 +6,6 @@ package template_test
import (
"io"
- "io/ioutil"
"log"
"os"
"path/filepath"
@@ -20,7 +19,7 @@ type templateFile struct {
}
func createTestDir(files []templateFile) string {
- dir, err := ioutil.TempDir("", "template")
+ dir, err := os.MkdirTemp("", "template")
if err != nil {
log.Fatal(err)
}