Skip to content

Commit

Permalink
configuration reader
Browse files Browse the repository at this point in the history
  • Loading branch information
prosenjitjoy committed Sep 14, 2023
1 parent 3574b57 commit 6d1d14d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cleanenv/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ port="5432"
host="env_host"
name="env_name"
user="env_user"
# pass="env_pass"
pass="env_pass"
2 changes: 1 addition & 1 deletion cleanenv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ConfigDatabase struct {
Host string `yaml:"host" env:"host" env-default:"host" env-description:"server host"`
Name string `yaml:"name" env:"name" env-default:"name" env-description:"database name"`
User string `yaml:"user" env:"user" env-default:"user" env-description:"database user"`
Pass string `yaml:"pass" env:"pass" env-default:"pass" env-description:"database pass"`
Pass string `yaml:"pass" env:"pass" env-required:"true" env-description:"database pass"`
}

var cfg ConfigDatabase
Expand Down

0 comments on commit 6d1d14d

Please sign in to comment.