From 3f861135cd6f230ae404877ac2271e42fad05728 Mon Sep 17 00:00:00 2001 From: L3DLP Date: Tue, 14 Nov 2023 04:02:33 +0100 Subject: [PATCH] Update strip.go [FIX] Deprecated io/ioutil --- strip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strip.go b/strip.go index 7240bcd..0818044 100644 --- a/strip.go +++ b/strip.go @@ -10,7 +10,7 @@ import ( "fmt" "html" "io" - "io/ioutil" + "os" "path/filepath" "reflect" "strings" @@ -3554,7 +3554,7 @@ func parseFiles(t *Template, filenames ...string) (*Template, error) { return nil, fmt.Errorf("html/template: no files named in call to ParseFiles") } for _, filename := range filenames { - b, err := ioutil.ReadFile(filename) + b, err := os.ReadFile(filename) if err != nil { return nil, err }