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

Method GetInt32

viper.go:813–815  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

811func GetInt32(key string) int32 { return v.GetInt32(key) }
812
813func (v *Viper) GetInt32(key string) int32 {
814 return cast.ToInt32(v.Get(key))
815}
816
817// GetInt64 returns the value associated with the key as an integer.
818func GetInt64(key string) int64 { return v.GetInt64(key) }

Callers 2

TestMergeConfigFunction · 0.80
GetInt32Function · 0.80

Calls 1

GetMethod · 0.95

Tested by 1

TestMergeConfigFunction · 0.64