rename config var
This commit is contained in:
parent
e5feb56360
commit
4c6ed95819
|
|
@ -62,8 +62,9 @@ type ApplicationConfig struct {
|
||||||
|
|
||||||
// InitConfig
|
// InitConfig
|
||||||
// InitConfig function reads provided file and setup envirmental variables;
|
// InitConfig function reads provided file and setup envirmental variables;
|
||||||
func InitConfig(envFilePath string) Config {
|
func InitConfig(env string) Config {
|
||||||
err := godotenv.Load(envFilePath)
|
log.Printf("loading ENV from: %s", env)
|
||||||
|
err := godotenv.Load(env)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error while loading env file")
|
log.Fatal("Error while loading env file")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue