Fixing some issues, backed project study
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
// Read Méthode permettant de lire le fichier de donfiguration
|
||||
// return AppConfig
|
||||
func Read(filePath string) (*AppConfig, error) {
|
||||
config := AppConfig{}
|
||||
file, err := ioutil.ReadFile(filePath)
|
||||
@@ -16,6 +18,5 @@ func Read(filePath string) (*AppConfig, error) {
|
||||
if errJson != nil {
|
||||
return nil, errJson
|
||||
}
|
||||
|
||||
return &config, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user