Use io insteand depreceated ioutil.
This commit is contained in:
parent
58d1a2f98a
commit
ab6def327b
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue