Skip to content
New issue

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

Support multiple ENV variables #154

Closed
shellbear opened this issue Mar 17, 2021 · 2 comments
Closed

Support multiple ENV variables #154

shellbear opened this issue Mar 17, 2021 · 2 comments

Comments

@shellbear
Copy link

It would be useful to support multiple ENV variables at once separated by commas.

Example:

type Example struct {
    Port int `env:"APPLICATION_PORT,PORT" default:"8080"`
}

So use can provide the port argument with multiple environment variables.

Thank you.

@alecthomas
Copy link
Owner

I agree this would be useful.

@alecthomas
Copy link
Owner

This is supported now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants