all: replace uses of deprecated ioutil functions

This commit is contained in:
Dan Kortschak
2021-08-12 19:49:38 +09:30
parent f12fdcffef
commit af39aebcaa
14 changed files with 29 additions and 37 deletions

View File

@@ -12,7 +12,7 @@ package ast_test
import (
"bytes"
"io/ioutil"
"os"
"testing"
"gonum.org/v1/gonum/graph/formats/dot"
@@ -68,7 +68,7 @@ func TestParseFile(t *testing.T) {
if len(g.out) > 0 {
out = g.out
}
buf, err := ioutil.ReadFile(out)
buf, err := os.ReadFile(out)
if err != nil {
t.Errorf("%q: unable to read file; %v", g.in, err)
continue