Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1f4981b0a9
|
2
main.go
2
main.go
@@ -45,7 +45,7 @@ func loadEnv() error {
|
|||||||
viper.AutomaticEnv()
|
viper.AutomaticEnv()
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
log.Println("No .env file found")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmarshal the config from file and env into the config struct
|
// Unmarshal the config from file and env into the config struct
|
||||||
|
|||||||
Reference in New Issue
Block a user