We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support delegation.
package main import ( "fmt" "github.com/caarlos0/env" ) type Foo struct { Food string `env:"FOOD"` } type Bar struct { Baz string `env:"BAZ"` Foo } func main() { bar := Bar{} err := env.Parse(&bar) if err != nil { fmt.Printf("%+v\n", err) } fmt.Printf("%+v\n", bar) }
BAZ=1234 FOOD=4321 go run main.go
Is {Baz:1234 Foo:{Food:}} Feature request {Baz:1234 Foo:{Food:4321}}
{Baz:1234 Foo:{Food:}}
{Baz:1234 Foo:{Food:4321}}
The text was updated successfully, but these errors were encountered:
I like this idea.
Will think about it a little more and try to implement.
Thanks for the suggestion!
Sorry, something went wrong.
fixed on #36
No branches or pull requests
Please support delegation.
Is
{Baz:1234 Foo:{Food:}}
Feature request
{Baz:1234 Foo:{Food:4321}}
The text was updated successfully, but these errors were encountered: