diff options
author | KimMachineGun <geon0250@gmail.com> | 2021-04-03 08:10:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-04-05 17:51:15 +0000 |
commit | a040ebeb980d1a712509fa3d8073cf6ae16cbe78 (patch) | |
tree | 5dbb3b41a6506cb0251e49a2bf83cccf3aa571c4 /misc/android | |
parent | 9abedf482752cac0a29c56804f7d34698aa044f2 (diff) | |
download | go-a040ebeb980d1a712509fa3d8073cf6ae16cbe78.tar.gz go-a040ebeb980d1a712509fa3d8073cf6ae16cbe78.zip |
all: update references to symbols moved from io/ioutil to io
Update references missed in CL 263142.
For #41190
Change-Id: I778760a6a69bd0440fec0848bdef539c9ccb4ee1
GitHub-Last-Rev: dda42b09fff36dc08ec1cdec50cc19e3da5058e5
GitHub-Pull-Request: golang/go#42874
Reviewed-on: https://go-review.googlesource.com/c/go/+/273946
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'misc/android')
-rw-r--r-- | misc/android/go_android_exec.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/android/go_android_exec.go b/misc/android/go_android_exec.go index 7aa7fe56fc..3af2bee583 100644 --- a/misc/android/go_android_exec.go +++ b/misc/android/go_android_exec.go @@ -14,7 +14,6 @@ import ( "fmt" "go/build" "io" - "io/ioutil" "log" "os" "os/exec" @@ -276,7 +275,7 @@ func adbCopyGoroot() error { if err := syscall.Flock(int(stat.Fd()), syscall.LOCK_EX); err != nil { return err } - s, err := ioutil.ReadAll(stat) + s, err := io.ReadAll(stat) if err != nil { return err } @@ -294,7 +293,7 @@ func adbCopyGoroot() error { goroot := runtime.GOROOT() // Build go for android. goCmd := filepath.Join(goroot, "bin", "go") - tmpGo, err := ioutil.TempFile("", "go_android_exec-cmd-go-*") + tmpGo, err := os.CreateTemp("", "go_android_exec-cmd-go-*") if err != nil { return err } |