Skip to content

Commit

Permalink
chore: update README example with non-deprecated function from ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: ariyonaty <[email protected]>
  • Loading branch information
ariyonaty committed Jan 2, 2024
1 parent 083238e commit b9a8d7c
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 b9a8d7c

Please sign in to comment.