mirror of
https://github.com/golang/go
synced 2024-11-22 20:40:03 -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:
parent
9fbd0f64d8
commit
164a6265e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user