This commit is contained in:
aozhiwei 2024-06-28 12:34:13 +08:00
parent 91b9c416fb
commit 883eff90e5

View File

@ -317,6 +317,14 @@ func GetSyncMapSize(m sync.Map) int {
return size
}
func MapClone(m map[string]interface{}) map[string]interface{} {
result := map[string]interface{}{}
for k, v := range m {
result[k] = v
}
return result
}
func IsDebug() bool {
return true
}