From c6e6430808e260db90c224203ded99d3d3829d9c Mon Sep 17 00:00:00 2001 From: tiglog Date: Mon, 16 Oct 2023 20:50:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20ioutil=20=E6=8D=A2=E4=B8=BA=20os?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gconfig/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)