Migrade from ioutil. to os for ReadFile
This commit is contained in:
parent
73c5509e9f
commit
57244c6971
@ -3,7 +3,6 @@ package helpers
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
@ -74,7 +73,7 @@ func LoadConfig() (*Configuration, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
if data, err := ioutil.ReadFile(param.ConfFilePath); err == nil {
|
||||
if data, err := os.ReadFile(param.ConfFilePath); err == nil {
|
||||
config.setConfigValue(key, string(data))
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user