mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 2 deletions
|
|
@ -34,7 +34,6 @@ import (
|
||||||
"go/scanner"
|
"go/scanner"
|
||||||
"go/token"
|
"go/token"
|
||||||
"internal/testenv"
|
"internal/testenv"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
@ -332,7 +331,7 @@ func testDir(t *testing.T, dir string) {
|
||||||
// if fi is a directory, its files make up a single package
|
// if fi is a directory, its files make up a single package
|
||||||
var filenames []string
|
var filenames []string
|
||||||
if fi.IsDir() {
|
if fi.IsDir() {
|
||||||
fis, err := ioutil.ReadDir(path)
|
fis, err := os.ReadDir(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue