(key string, def string)
| 10 | var MetaMap_DeleteSentinel = uuid.NewString() |
| 11 | |
| 12 | func (m MetaMapType) GetString(key string, def string) string { |
| 13 | if v, ok := m[key]; ok { |
| 14 | if s, ok := v.(string); ok { |
| 15 | return s |
| 16 | } |
| 17 | } |
| 18 | return def |
| 19 | } |
| 20 | |
| 21 | func (m MetaMapType) HasKey(key string) bool { |
| 22 | _, ok := m[key] |
no outgoing calls
no test coverage detected