diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-08-14 13:26:53 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-08-14 13:26:53 +0100 |
| commit | 59210c42cbe9a867343f0dc6a973e34eb2f1771f (patch) | |
| tree | f6601f73de74aa551097480de164767c7ce24ff6 /main.go | |
| parent | 73e4b3f8fe39291f3477fa073572598e8bd25120 (diff) | |
Use io.ReadAll instead of ioutil.ReadAll
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
