GetInt returns the value associated with the key as an integer.
(key string)
| 802 | |
| 803 | // GetInt returns the value associated with the key as an integer. |
| 804 | func GetInt(key string) int { return v.GetInt(key) } |
| 805 | |
| 806 | func (v *Viper) GetInt(key string) int { |
| 807 | return cast.ToInt(v.Get(key)) |