Remove ioutil import

This commit is contained in:
180909
2023-10-21 23:49:19 +08:00
committed by Soren L. Hansen
parent bf3eae1d9a
commit 546ac8d62b
4 changed files with 8 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
package utils
import (
"io/ioutil"
"log"
"os"
"reflect"
@@ -114,7 +113,7 @@ func ApplyConfigFile(filePath string, options ...interface{}) error {
fileString := []byte{}
log.Printf("Loading config file at: %s", filePath)
fileString, err := ioutil.ReadFile(filePath)
fileString, err := os.ReadFile(filePath)
if err != nil {
return err
}