chore: replace ioutil -> io

This commit is contained in:
henry.chen committed 2024-11-04 10:31:28 +08:00
1 parent 27bc610a31
commit 6e1965a764
8 files changed
+27 -26

No files matched your search

+1 -2
View File
@@ -2,7 +2,6 @@
package config
import (
"io/ioutil"
"os"
"path/filepath"
"strings"
@@ -147,7 +146,7 @@ func init() {
WorkDir = workDir()
path := filepath.Join(WorkDir, "conf", "app.yml")
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
panic(err)
}