From d0c3d4cdc50bdddbef8833787a0c8b1f01bf1883 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 20 Jul 2023 09:06:33 +1000 Subject: [PATCH] don't use ioutil --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 81bab01..5e39edc 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,6 @@ import ( "encoding/pem" "flag" "fmt" - "io/ioutil" "os" "path/filepath" @@ -132,7 +131,7 @@ func main() { // only try to load certificate from file if the command line argument was specified if isFlagPassed("cert-file") { // Try to read the file - cf, err := ioutil.ReadFile(GetFilePath(*certFile)) + cf, err := os.ReadFile(GetFilePath(*certFile)) if err != nil { output.AuthSuccess = false output.Error = err.Error()