mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
all: Replace deprecated ioutil with io and os
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
8c7a4e995b
commit
4c46f9400b
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user