From 59210c42cbe9a867343f0dc6a973e34eb2f1771f Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 14 Aug 2022 13:26:53 +0100 Subject: Use io.ReadAll instead of ioutil.ReadAll --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6297ad9..75199f2 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "encoding/base64" "flag" "fmt" - "io/ioutil" + "io" "os" "github.com/hashicorp/vault/shamir" @@ -23,7 +23,7 @@ var ( func main() { flag.Parse() - buf, err := ioutil.ReadAll(os.Stdin) + buf, err := io.ReadAll(os.Stdin) if err != nil { fmt.Fprintln(os.Stderr, "failed to read the secret:", err) os.Exit(1) -- cgit v1.2.3-70-g09d2