diff --git a/gconfig/config.go b/gconfig/config.go index aa524ae..8377271 100644 --- a/gconfig/config.go +++ b/gconfig/config.go @@ -9,7 +9,7 @@ package gconfig import ( "bytes" - "io/ioutil" + "os" "text/template" "git.hexq.cn/tiglog/golib/gfile" @@ -50,7 +50,7 @@ func (c *BaseConfig) GetData(fname string, must bool) *bytes.Buffer { return nil } } - dat, err := ioutil.ReadFile(fp) + dat, err := os.ReadFile(fp) helper.CheckErr(err) tpl, err := template.New("config").Parse(string(dat)) helper.CheckErr(err)