Skip to content

Commit

Permalink
(feat) added support for simultaneously using environment variables a…
Browse files Browse the repository at this point in the history
…nd files to supply configuration values.
  • Loading branch information
DwaineSaunderson committed Jan 19, 2024
1 parent 00ef7ff commit 17df111
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 17df111

Please sign in to comment.