1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

refactor: move from io/ioutil to io and os package

The io/ioutil package has been deprecated in Go 1.16. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
Eng Zer Jun 2021-08-24 18:10:50 +08:00
parent 2b70006e3b
commit c55a4ac779
No known key found for this signature in database
GPG key ID: DAEBBD2E34C111E6
397 changed files with 1371 additions and 1606 deletions

View file

@ -2,7 +2,7 @@ package portmapper
import (
"fmt"
"io/ioutil"
"io"
"net"
"os"
"os/exec"
@ -67,7 +67,7 @@ func (p *proxyCommand) Start() error {
r.Read(buf)
if string(buf) != "0\n" {
errStr, err := ioutil.ReadAll(r)
errStr, err := io.ReadAll(r)
if err != nil {
errchan <- fmt.Errorf("Error reading exit status from userland proxy: %v", err)
return