Fixing some issues, backed project study

This commit is contained in:
2022-03-05 18:32:27 +01:00
parent b942166f69
commit 8c443d43e4
10 changed files with 15 additions and 18 deletions

View File

@@ -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
}