chore: remove refs to deprecated io/ioutil

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu
2023-10-19 11:05:38 +08:00
parent 958b0671bd
commit 115e48a202
12 changed files with 56 additions and 59 deletions
+3 -3
View File
@@ -17,7 +17,7 @@
package cmd
import (
"io/ioutil"
"io"
"os"
"github.com/BBVA/kapow/internal/client"
@@ -62,9 +62,9 @@ func init() {
var buf []byte
var err error
if commandFile == "-" {
buf, err = ioutil.ReadAll(os.Stdin)
buf, err = io.ReadAll(os.Stdin)
} else {
buf, err = ioutil.ReadFile(commandFile)
buf, err = os.ReadFile(commandFile)
}
if err != nil {
logger.L.Fatal(err)