mirror of
https://gitee.com/johng/gf
synced 2026-06-27 01:43:33 +08:00
ghttp.Response方法完善,增加ParseTpl/ParseTplContent/TplContent方法,Template修改为Tpl方法
This commit is contained in:
@ -34,14 +34,14 @@ func (this *StringInterfaceMap) Iterator(f func (k string, v interface{}) bool)
|
||||
}
|
||||
|
||||
// 哈希表克隆
|
||||
func (this *StringInterfaceMap) Clone() *map[string]interface{} {
|
||||
func (this *StringInterfaceMap) Clone() map[string]interface{} {
|
||||
m := make(map[string]interface{})
|
||||
this.mu.RLock()
|
||||
for k, v := range this.m {
|
||||
m[k] = v
|
||||
}
|
||||
this.mu.RUnlock()
|
||||
return &m
|
||||
return m
|
||||
}
|
||||
|
||||
// 设置键值对
|
||||
|
||||
Reference in New Issue
Block a user