This commit is contained in:
gazebo
2019-12-24 09:27:01 +08:00
parent 20aeabd160
commit e8352cd412

View File

@@ -92,6 +92,9 @@ func FilterMapByFieldList(mapData map[string]interface{}, fields []string) (vali
}
func IsValueEqual(value1, value2 interface{}) bool {
if value1 == nil || value2 == nil {
return value1 == value2
}
return Interface2String(value1) == Interface2String(value2)
}