kong icon indicating copy to clipboard operation
kong copied to clipboard

Support multiple ENV variables

Open shellbear opened this issue 4 years ago • 1 comments

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.

shellbear avatar Mar 17 '21 08:03 shellbear

I agree this would be useful.

alecthomas avatar Apr 05 '21 21:04 alecthomas