ghttp.Response方法完善,增加ParseTpl/ParseTplContent/TplContent方法,Template修改为Tpl方法

This commit is contained in:
John
2018-09-04 22:32:43 +08:00
parent e1e00baf11
commit 447c886f45
14 changed files with 74 additions and 30 deletions

View File

@ -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
}
// 设置键值对