]> Sergey Matveev's repositories - mmc.git/blobdiff - netrc.go
ioutil is deprecated
[mmc.git] / netrc.go
index 4a2657fa1f53442f43c2206671fddd2fa4dc2daf..c3a9e61ab3a1cf73c7eccefe7e2fb2d131244764 100644 (file)
--- 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 "", ""