We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430a5a2 commit 9e9bd5cCopy full SHA for 9e9bd5c
README.md
@@ -30,7 +30,7 @@ type config struct {
30
Port int `env:"PORT" required:"true"`
31
Peers []string `env:"PEERS"` // you can use `delimiter` tag to specify separator, for example `delimiter:" "`
32
ConnectionTimeout time.Duration `env:"TIMEOUT" default:"10s"`
33
- LogLevel string `env:"LOG_LEVEL" enum:"debug,info,error"`
+ LogLevel string `env:"LOG_LEVEL" enum:"debug info error" delimiter:" "` // the delimiter tag applies to enum as well
34
}
35
36
func main() {
0 commit comments