summaryrefslogtreecommitdiffstats
path: root/tpl/internal/go_templates/texttemplate/examplefiles_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/internal/go_templates/texttemplate/examplefiles_test.go')
-rw-r--r--tpl/internal/go_templates/texttemplate/examplefiles_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/internal/go_templates/texttemplate/examplefiles_test.go b/tpl/internal/go_templates/texttemplate/examplefiles_test.go
index 8a78a018e..5a95b7078 100644
--- a/tpl/internal/go_templates/texttemplate/examplefiles_test.go
+++ b/tpl/internal/go_templates/texttemplate/examplefiles_test.go
@@ -8,7 +8,6 @@ package template_test
import (
"io"
- "io/ioutil"
"log"
"os"
"path/filepath"
@@ -22,7 +21,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)
}