4ecb9cc3 by astaxie

move httplib from beego to beego/httplib safemap support get all items

1 parent 64ef8ad6
package beego
package httplib
import (
"bytes"
......
package beego
package httplib
import (
"io/ioutil"
......
......@@ -56,3 +56,9 @@ func (m *BeeMap) Delete(k interface{}) {
defer m.lock.Unlock()
delete(m.bm, k)
}
func (m *BeeMap) Items() map[interface{}]interface{} {
m.lock.RLock()
defer m.lock.RUnlock()
return m.bm
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!