From b9a8d7c95c8c205529c1bf779ac6ddabb728f247 Mon Sep 17 00:00:00 2001 From: ariyonaty Date: Mon, 1 Jan 2024 14:20:36 -0800 Subject: [PATCH] chore: update README example with non-deprecated function from ioutil Signed-off-by: ariyonaty --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8bdc685..e6e437c 100644 --- a/README.md +++ b/README.md @@ -56,15 +56,15 @@ import ( "crypto/x509" "encoding/pem" "fmt" - "io/ioutil" "log" + "os" "github.com/smallstep/certinfo" ) func main() { // Read and parse the PEM certificate file - pemData, err := ioutil.ReadFile("cert.pem") + pemData, err := os.ReadFile("cert.pem") if err != nil { log.Fatal(err) }