Get can retrieve any value given the key to use. Get is case-insensitive for a key. Get has the behavior of returning the value associated with the first place from where it is set. Viper will check in the following order: override, flag, env, config file, key/value store, default Get returns an in
(key string)
| 712 | // |
| 713 | // Get returns an interface. For a specific value use one of the Get____ methods. |
| 714 | func Get(key string) any { return v.Get(key) } |
| 715 | |
| 716 | func (v *Viper) Get(key string) any { |
| 717 | lcaseKey := strings.ToLower(key) |