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

Method GetStringSlice

viper.go:890–892  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

888func GetStringSlice(key string) []string { return v.GetStringSlice(key) }
889
890func (v *Viper) GetStringSlice(key string) []string {
891 return cast.ToStringSlice(v.Get(key))
892}
893
894// GetStringMap returns the value associated with the key as a map of interfaces.
895func GetStringMap(key string) map[string]any { return v.GetStringMap(key) }

Callers 3

TestMergeConfigFunction · 0.80
TestMergeConfigNoMergeFunction · 0.80
GetStringSliceFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by 2

TestMergeConfigFunction · 0.64
TestMergeConfigNoMergeFunction · 0.64