Chore: remove deprecated ioutil

This commit is contained in:
Dreamacro
2021-10-09 20:35:06 +08:00
parent 1996bef9e6
commit 4ce35870fe
8 changed files with 21 additions and 21 deletions

View File

@ -2,7 +2,6 @@ package executor
import (
"fmt"
"io/ioutil"
"os"
"sync"
@ -33,7 +32,7 @@ func readConfig(path string) ([]byte, error) {
if _, err := os.Stat(path); os.IsNotExist(err) {
return nil, err
}
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return nil, err
}