MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetFloat

Method GetFloat

pkg/waveobj/metamap.go:93–100  ·  view source on GitHub ↗
(key string, def float64)

Source from the content-addressed store, hash-verified

91}
92
93func (m MetaMapType) GetFloat(key string, def float64) float64 {
94 if v, ok := m[key]; ok {
95 if fval, ok := v.(float64); ok {
96 return fval
97 }
98 }
99 return def
100}
101
102func (m MetaMapType) GetMap(key string) MetaMapType {
103 if v, ok := m[key]; ok {

Callers 1

checkCloseOnExitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected