Skip to content

Commit

Permalink
Merge pull request #3 from DwaineSaunderson/dwaine/feat/files-and-env…
Browse files Browse the repository at this point in the history
…-vars

(feat) added support for simultaneously using files and env vars
  • Loading branch information
ranglust committed Jan 19, 2024
2 parents 00ef7ff + 17df111 commit f3e069d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion venomoid.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ func (c *ConfigBuilder) Build(destStruct interface{}) error {
}
}
}
} else if c.AutomaticEnv {
}

if c.AutomaticEnv {
viper.AutomaticEnv()

if c.EnvPrefix != "" {
Expand Down

0 comments on commit f3e069d

Please sign in to comment.