From 55f18649478980289bfba6ea5a9ed7b659806637 Mon Sep 17 00:00:00 2001 From: Niklas Nett Date: Fri, 23 Aug 2024 16:34:00 +0200 Subject: [PATCH] Migrate import --- pkg/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/template/template.go b/pkg/template/template.go index 881c3b0..ade7eb5 100644 --- a/pkg/template/template.go +++ b/pkg/template/template.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" "go/format" - "io/ioutil" + "io" "os" "path/filepath" "text/template" @@ -57,7 +57,7 @@ func newTemplate(outputDir string) (*template.Template, error) { } defer in.Close() - tempText, err := ioutil.ReadAll(in) + tempText, err := io.ReadAll(in) if err != nil { return nil, err }