This commit is contained in:
Márk Sági-Kazár 2019-07-13 11:57:28 +02:00 committed by GitHub
parent 2ee9598b00
commit e968ab31c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -797,7 +797,7 @@ func (v *Viper) GetDuration(key string) time.Duration {
return cast.ToDuration(v.Get(key))
}
// GetIntSlice returns the value associated with the key as a slice of strings.
// GetIntSlice returns the value associated with the key as a slice of int values.
func GetIntSlice(key string) []int { return v.GetIntSlice(key) }
func (v *Viper) GetIntSlice(key string) []int {
return cast.ToIntSlice(v.Get(key))