chore: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user