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

Method GetUint

viper.go:834–836  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

832func GetUint(key string) uint { return v.GetUint(key) }
833
834func (v *Viper) GetUint(key string) uint {
835 return cast.ToUint(v.Get(key))
836}
837
838// GetUint16 returns the value associated with the key as an unsigned integer.
839func GetUint16(key string) uint16 { return v.GetUint16(key) }

Callers 2

TestMergeConfigFunction · 0.80
GetUintFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by 1

TestMergeConfigFunction · 0.64