Skip to content

Commit

Permalink
Merge pull request #45 from ariyonaty/fix/update-deprecated-ioutil-pkg
Browse files Browse the repository at this point in the history
chore: update README example with non-deprecated function from ioutil
  • Loading branch information
maraino authored Jan 2, 2024
2 parents 083238e + b9a8d7c commit 1764b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1764b69

Please sign in to comment.