aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-08-14 13:26:53 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2022-08-14 13:26:53 +0100
commit59210c42cbe9a867343f0dc6a973e34eb2f1771f (patch)
treef6601f73de74aa551097480de164767c7ce24ff6
parent73e4b3f8fe39291f3477fa073572598e8bd25120 (diff)
Use io.ReadAll instead of ioutil.ReadAll
-rw-r--r--main.go4
1 files 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)