Migrade from ioutil. to os for ReadFile

This commit is contained in:
Fred Boniface 2024-03-25 10:51:29 +00:00
parent 73c5509e9f
commit 57244c6971

View File

@ -3,7 +3,6 @@ package helpers
import ( import (
"errors" "errors"
"fmt" "fmt"
"io/ioutil"
"os" "os"
) )
@ -74,7 +73,7 @@ func LoadConfig() (*Configuration, error) {
continue continue
} }
if data, err := ioutil.ReadFile(param.ConfFilePath); err == nil { if data, err := os.ReadFile(param.ConfFilePath); err == nil {
config.setConfigValue(key, string(data)) config.setConfigValue(key, string(data))
continue continue
} }