]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - netrc.go
io/ioutil is deprecated since Go 1.16
[tofuproxy.git] / netrc.go
index 8cc6560feea63bab82c3d115ba7beb1a9fd706cd..d8877b4b9f41005f443f30937ed4ebdcb1cbe719 100644 (file)
--- a/netrc.go
+++ b/netrc.go
@@ -3,7 +3,6 @@
 package tofuproxy
 
 import (
-       "io/ioutil"
        "log"
        "os"
        "path/filepath"
@@ -19,7 +18,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 os.IsNotExist(err) {
                        return "", ""