MCPcopy
hub / github.com/wavetermdev/waveterm / GetInt

Method GetInt

pkg/waveobj/metamap.go:84–91  ·  view source on GitHub ↗
(key string, def int)

Source from the content-addressed store, hash-verified

82}
83
84func (m MetaMapType) GetInt(key string, def int) int {
85 if v, ok := m[key]; ok {
86 if fval, ok := v.(float64); ok {
87 return int(fval)
88 }
89 }
90 return def
91}
92
93func (m MetaMapType) GetFloat(key string, def float64) float64 {
94 if v, ok := m[key]; ok {

Callers 4

DBGetCountFunction · 0.80
DBGetWSCountsFunction · 0.80
DBUpdateFunction · 0.80
runRunFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected