(key string, def int)
| 82 | } |
| 83 | |
| 84 | func (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 | |
| 93 | func (m MetaMapType) GetFloat(key string, def float64) float64 { |
| 94 | if v, ok := m[key]; ok { |
no outgoing calls
no test coverage detected