(iface interface{})
| 1 | package editor |
| 2 | |
| 3 | func reflectToInt(iface interface{}) int { |
| 4 | i, ok := iface.(int64) |
| 5 | if ok { |
| 6 | return int(i) |
| 7 | } |
| 8 | u, ok := iface.(uint64) |
| 9 | if ok { |
| 10 | return int(u) |
| 11 | } |
| 12 | return 0 |
| 13 | } |
| 14 | |
| 15 | func isZero(d interface{}) bool { |
| 16 | if d == nil { |
no outgoing calls
no test coverage detected