// hello package datastruct type DmapStringKV struct { Mem *DmapKv } func NewDMAP_StringKV() *DmapStringKV { cm := &DmapStringKV{ Mem: NewDmap(), } return cm } func (cm *DmapStringKV) Add(key, val string) { cm.Mem.Add(key, val) } func (cm *DmapStringKV) Remove(key string) { cm.Mem.Remove(key) } func (cm *DmapStringKV) Get(key string) (string, bool) { v, ok := cm.Mem.Get(key) if ok { return v.(string), true } else { return "", false } } func (cm *DmapStringKV) Len() int { return cm.Mem.Len() } func (cm *DmapStringKV) Clean() { cm.Mem.Clean() }