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

Method GetInt

viper.go:806–808  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

804func GetInt(key string) int { return v.GetInt(key) }
805
806func (v *Viper) GetInt(key string) int {
807 return cast.ToInt(v.Get(key))
808}
809
810// GetInt32 returns the value associated with the key as an integer.
811func GetInt32(key string) int32 { return v.GetInt32(key) }

Callers 6

TestMergeConfigFunction · 0.80
TestMergeConfigNoMergeFunction · 0.80
TestMergeConfigMapFunction · 0.80
GetIntFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by 5

TestMergeConfigFunction · 0.64
TestMergeConfigNoMergeFunction · 0.64
TestMergeConfigMapFunction · 0.64