mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
组件优化
This commit is contained in:
@ -163,9 +163,9 @@ func (this *StringInterfaceMap) Contains(key string) bool {
|
||||
// 哈希表大小
|
||||
func (this *StringInterfaceMap) Size() int {
|
||||
this.mu.RLock()
|
||||
len := len(this.m)
|
||||
length := len(this.m)
|
||||
this.mu.RUnlock()
|
||||
return len
|
||||
return length
|
||||
}
|
||||
|
||||
// 哈希表是否为空
|
||||
|
||||
Reference in New Issue
Block a user