Skip to content

Commit

Permalink
viper automaticenv
Browse files Browse the repository at this point in the history
gbaeke committed Sep 2, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e8d69f1 commit 6f88ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/app/main.go
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ func main() {
viper.SetConfigName("config")
viper.SetConfigType("toml")
viper.AddConfigPath(".")
viper.AutomaticEnv()
err = viper.ReadInConfig()
if err != nil {
fmt.Fprintf(os.Stderr, "viper read config error %s\n", err.Error())

0 comments on commit 6f88ae7

Please sign in to comment.