Commit 4ecb9cc3 authored by astaxie's avatar astaxie

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

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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment