1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:27:59 -07:00

go/types: remove use of ioutil (cleanup)

Change-Id: I0f9437953cb994c6802efee92167702daacf000a
Reviewed-on: https://go-review.googlesource.com/c/go/+/305575
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
Robert Griesemer 2021-03-29 13:31:14 -07:00
parent 9fbd0f64d8
commit 164a6265e7

View File

@ -34,7 +34,6 @@ import (
"go/scanner"
"go/token"
"internal/testenv"
"io/ioutil"
"os"
"path/filepath"
"regexp"
@ -332,7 +331,7 @@ func testDir(t *testing.T, dir string) {
// if fi is a directory, its files make up a single package
var filenames []string
if fi.IsDir() {
fis, err := ioutil.ReadDir(path)
fis, err := os.ReadDir(path)
if err != nil {
t.Error(err)
continue