EnvVars is a helper function to encapsulate a number of envVarValueSource together as a ValueSourceChain
(keys ...string)
| 132 | // EnvVars is a helper function to encapsulate a number of |
| 133 | // envVarValueSource together as a ValueSourceChain |
| 134 | func EnvVars(keys ...string) ValueSourceChain { |
| 135 | vsc := ValueSourceChain{Chain: []ValueSource{}} |
| 136 | |
| 137 | for _, key := range keys { |
| 138 | vsc.Chain = append(vsc.Chain, EnvVar(key)) |
| 139 | } |
| 140 | |
| 141 | return vsc |
| 142 | } |
| 143 | |
| 144 | // fileValueSource encapsulates a ValueSource from a file |
| 145 | type fileValueSource struct { |