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

Method GetUint16

viper.go:841–843  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

839func GetUint16(key string) uint16 { return v.GetUint16(key) }
840
841func (v *Viper) GetUint16(key string) uint16 {
842 return cast.ToUint16(v.Get(key))
843}
844
845// GetUint32 returns the value associated with the key as an unsigned integer.
846func GetUint32(key string) uint32 { return v.GetUint32(key) }

Callers 2

TestMergeConfigFunction · 0.80
GetUint16Function · 0.80

Calls 1

GetMethod · 0.95

Tested by 1

TestMergeConfigFunction · 0.64