From 197414cfef017ff5e2c0cd8ba71f6730bbf30227 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 10 Oct 2023 10:17:05 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil --- cmd/submitct/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/submitct/main.go b/cmd/submitct/main.go index 191793e..a5e8e0c 100644 --- a/cmd/submitct/main.go +++ b/cmd/submitct/main.go @@ -22,7 +22,7 @@ import ( "encoding/pem" "flag" "fmt" - "io/ioutil" + "io" "log" "os" "strings" @@ -146,7 +146,7 @@ func main() { flag.Parse() log.SetPrefix("submitct: ") - certsPem, err := ioutil.ReadAll(os.Stdin) + certsPem, err := io.ReadAll(os.Stdin) if err != nil { log.Fatalf("Error reading stdin: %s", err) }