From: Sergey Matveev Date: Mon, 20 Mar 2023 10:59:00 +0000 (+0300) Subject: ioutil is deprecated X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8a84eda0f18b557f7f86afc28815b10d2453ae27;p=mmc.git ioutil is deprecated --- diff --git a/netrc.go b/netrc.go index 4a2657f..c3a9e61 100644 --- a/netrc.go +++ b/netrc.go @@ -21,7 +21,6 @@ package mmc import ( "errors" "io/fs" - "io/ioutil" "log" "os" "path/filepath" @@ -37,7 +36,7 @@ func FindInNetrc(host string) (string, string) { } netrcPath = filepath.Join(homeDir, ".netrc") } - data, err := ioutil.ReadFile(netrcPath) + data, err := os.ReadFile(netrcPath) if err != nil { if errors.Is(err, fs.ErrNotExist) { return "", ""