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

Method GetIntSlice

viper.go:883–885  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

881func GetIntSlice(key string) []int { return v.GetIntSlice(key) }
882
883func (v *Viper) GetIntSlice(key string) []int {
884 return cast.ToIntSlice(v.Get(key))
885}
886
887// GetStringSlice returns the value associated with the key as a slice of strings.
888func GetStringSlice(key string) []string { return v.GetStringSlice(key) }

Callers 3

TestMergeConfigFunction · 0.80
TestMergeConfigNoMergeFunction · 0.80
GetIntSliceFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by 2

TestMergeConfigFunction · 0.64
TestMergeConfigNoMergeFunction · 0.64