SetEnvPrefix defines a prefix that ENVIRONMENT variables will use. E.g. if your prefix is "spf", the env registry will look for env variables that start with "SPF_".
(in string)
| 402 | // E.g. if your prefix is "spf", the env registry will look for env |
| 403 | // variables that start with "SPF_". |
| 404 | func SetEnvPrefix(in string) { v.SetEnvPrefix(in) } |
| 405 | |
| 406 | func (v *Viper) SetEnvPrefix(in string) { |
| 407 | if in != "" { |
nothing calls this directly
no test coverage detected