(in string)
| 416 | } |
| 417 | |
| 418 | func (v *Viper) mergeWithEnvPrefix(in string) string { |
| 419 | if v.envPrefix != "" { |
| 420 | return strings.ToUpper(v.envPrefix + "_" + in) |
| 421 | } |
| 422 | |
| 423 | return strings.ToUpper(in) |
| 424 | } |
| 425 | |
| 426 | // AllowEmptyEnv tells Viper to consider set, |
| 427 | // but empty environment variables as valid values instead of falling back. |
no outgoing calls
no test coverage detected