diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-05-23 17:55:26 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-01 17:52:21 +0200 |
commit | 4c46f9400b91a205361210e8eb0c1718784ec8f2 (patch) | |
tree | 4f560a8d1c4f549b413acf4660812a4477da37a2 /tpl | |
parent | 8c7a4e995bbc8e9781b3765c2c6e3c3ae806c200 (diff) |
all: Replace deprecated ioutil with io and os
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/internal/templatefuncsRegistry.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/internal/templatefuncsRegistry.go b/tpl/internal/templatefuncsRegistry.go index eea14372b..c1b01f5a5 100644 --- a/tpl/internal/templatefuncsRegistry.go +++ b/tpl/internal/templatefuncsRegistry.go @@ -23,7 +23,6 @@ import ( "go/doc" "go/parser" "go/token" - "io/ioutil" "log" "os" "path/filepath" @@ -276,7 +275,7 @@ func getGetTplPackagesGoDoc() map[string]map[string]methodGoDocInfo { basePath = filepath.Join(pwd, "tpl") } - files, err := ioutil.ReadDir(basePath) + files, err := os.ReadDir(basePath) if err != nil { log.Fatal(err) } |