interp: get rid of deprecated stdlib package ioutil

No functional change.
This commit is contained in:
Marc Vertes
2021-11-26 11:58:07 +01:00
committed by GitHub
parent 9620116c30
commit da03c922ca
21 changed files with 36 additions and 46 deletions

View File

@@ -5,7 +5,6 @@ import (
"go/build"
"go/parser"
"go/token"
"io/ioutil"
"os"
"path/filepath"
"strings"
@@ -26,7 +25,7 @@ func TestFile(t *testing.T) {
_ = os.Setenv("YAEGI_SPECIAL_STDIO", "1")
baseDir := filepath.Join("..", "_test")
files, err := ioutil.ReadDir(baseDir)
files, err := os.ReadDir(baseDir)
if err != nil {
t.Fatal(err)
}