-
-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
Your Question
Does it support prefix like this? Thank you
type SharedConfig struct {
Port int `env:"PORT,default=5555"`
}
type Server1 struct {
// This processes Port from $FOO_PORT.
*SharedConfig `env:",prefix=FOO_"`
}
type Server2 struct {
// This processes Port from $BAR_PORT.
*SharedConfig `env:",prefix=BAR_"`
}
Expected answer
Metadata
Metadata
Assignees
Labels
No labels