mirror of
https://github.com/astaxie/beego.git
synced 2025-06-19 16:40:40 +00:00
move httplib from beego to beego/httplib safemap support get all items
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package beego
|
||||
package httplib
|
||||
|
||||
import (
|
||||
"bytes"
|
@ -1,4 +1,4 @@
|
||||
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user