MCPcopy
hub / github.com/spf13/viper / GetIntSlice

Function GetIntSlice

viper.go:881–881  ·  view source on GitHub ↗

GetIntSlice returns the value associated with the key as a slice of int values.

(key string)

Source from the content-addressed store, hash-verified

879
880// GetIntSlice returns the value associated with the key as a slice of int values.
881func GetIntSlice(key string) []int { return v.GetIntSlice(key) }
882
883func (v *Viper) GetIntSlice(key string) []int {
884 return cast.ToIntSlice(v.Get(key))

Callers

nothing calls this directly

Calls 1

GetIntSliceMethod · 0.80

Tested by

no test coverage detected