From 7ca51c47a936de491237dd516fb7d5d69a2b9c53 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 17 Jul 2023 09:38:41 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index bd26db0..1e15559 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,6 @@ package main import ( "fmt" "golang.org/x/crypto/ssh" - "io/ioutil" "net" "net/http" "os" @@ -88,7 +87,7 @@ func main() { NoClientAuth: true, } - privateBytes, err := ioutil.ReadFile("id_rsa") + privateBytes, err := os.ReadFile("id_rsa") if err != nil { panic("Failed to load private key") }