chore: remove refs to deprecated io/ioutil

This commit is contained in:
guoguangwu 2023-10-10 10:17:05 +08:00
parent 6ae7ae1f9a
commit 197414cfef
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import (
"encoding/pem" "encoding/pem"
"flag" "flag"
"fmt" "fmt"
"io/ioutil" "io"
"log" "log"
"os" "os"
"strings" "strings"
@ -146,7 +146,7 @@ func main() {
flag.Parse() flag.Parse()
log.SetPrefix("submitct: ") log.SetPrefix("submitct: ")
certsPem, err := ioutil.ReadAll(os.Stdin) certsPem, err := io.ReadAll(os.Stdin)
if err != nil { if err != nil {
log.Fatalf("Error reading stdin: %s", err) log.Fatalf("Error reading stdin: %s", err)
} }