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

Function GetInt

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

GetInt returns the value associated with the key as an integer.

(key string)

Source from the content-addressed store, hash-verified

802
803// GetInt returns the value associated with the key as an integer.
804func GetInt(key string) int { return v.GetInt(key) }
805
806func (v *Viper) GetInt(key string) int {
807 return cast.ToInt(v.Get(key))

Callers

nothing calls this directly

Calls 1

GetIntMethod · 0.80

Tested by

no test coverage detected