From 12898318354b11fed29278c84548bd359b78468d Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Sat, 27 May 2023 11:50:08 +0800 Subject: [PATCH] io/ioutil deprecated --- netrc/netrc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netrc/netrc.go b/netrc/netrc.go index ea49987..4ecc8e8 100644 --- a/netrc/netrc.go +++ b/netrc/netrc.go @@ -5,7 +5,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "os" "strings" "sync" @@ -368,7 +367,7 @@ func scanValue(scanner *bufio.Scanner, pos int) ([]byte, string, int, error) { } func parse(r io.Reader, pos int) (*Netrc, error) { - b, err := ioutil.ReadAll(r) + b, err := io.ReadAll(r) if err != nil { return nil, err }