From ab6def327b7b0c4d4f9b51fcbf995c66f81f6307 Mon Sep 17 00:00:00 2001 From: surdeus Date: Fri, 17 Feb 2023 15:26:33 +0300 Subject: [PATCH] Use io insteand depreceated ioutil. --- src/tool/mk/parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tool/mk/parse.go b/src/tool/mk/parse.go index 6cdc909..b44dbfc 100644 --- a/src/tool/mk/parse.go +++ b/src/tool/mk/parse.go @@ -5,7 +5,7 @@ package mk import ( "fmt" - "io/ioutil" + "io" "os" "path/filepath" "regexp" @@ -170,7 +170,7 @@ func parseRedirInclude(p *parser, t token) parserStateFun { p.basicWarnAtToken(fmt.Sprintf("cannot open %s", filename), p.tokenbuf[0]) //p.basicErrorAtToken(fmt.Sprintf("cannot open %s", filename), p.tokenbuf[0]) } - input, _ := ioutil.ReadAll(file) + input, _ := io.ReadAll(file) path, err := filepath.Abs(filename) if err != nil {