Merge pull request #257 from evalphobia/feature/nullable-float-bool
Support float and bool for nullable update
This commit is contained in:
commit
72ee356344
|
@ -37,6 +37,12 @@ func isZero(k interface{}) bool {
|
||||||
return k.(uint32) == 0
|
return k.(uint32) == 0
|
||||||
case uint64:
|
case uint64:
|
||||||
return k.(uint64) == 0
|
return k.(uint64) == 0
|
||||||
|
case float32:
|
||||||
|
return k.(float32) == 0
|
||||||
|
case float64:
|
||||||
|
return k.(float64) == 0
|
||||||
|
case bool:
|
||||||
|
return k.(bool) == false
|
||||||
case string:
|
case string:
|
||||||
return k.(string) == ""
|
return k.(string) == ""
|
||||||
case time.Time:
|
case time.Time:
|
||||||
|
|
Loading…
Reference in New Issue