Use io insteand depreceated ioutil.

This commit is contained in:
Andrey Parhomenko 2023-02-17 15:26:33 +03:00
parent 58d1a2f98a
commit ab6def327b

View file

@ -5,7 +5,7 @@ package mk
import ( import (
"fmt" "fmt"
"io/ioutil" "io"
"os" "os"
"path/filepath" "path/filepath"
"regexp" "regexp"
@ -170,7 +170,7 @@ func parseRedirInclude(p *parser, t token) parserStateFun {
p.basicWarnAtToken(fmt.Sprintf("cannot open %s", filename), p.tokenbuf[0]) p.basicWarnAtToken(fmt.Sprintf("cannot open %s", filename), p.tokenbuf[0])
//p.basicErrorAtToken(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) path, err := filepath.Abs(filename)
if err != nil { if err != nil {