]> Cypherpunks.ru repositories - gostls13.git/commitdiff
go/types: remove use of ioutil (cleanup)
authorRobert Griesemer <gri@golang.org>
Mon, 29 Mar 2021 20:31:14 +0000 (13:31 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 29 Mar 2021 20:35:19 +0000 (20:35 +0000)
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>
src/go/types/check_test.go

index 9812b3808b919034595ca8bee8b24ac33ec8e41d..327fb4c5f19cbe0226ee9b96fb9b8bf7711a5b7a 100644 (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