isGreaterThan implementations
(secondValue ValueInterface)
| 114 | |
| 115 | // isGreaterThan implementations |
| 116 | func (value IntegerValue) isGreaterThan(secondValue ValueInterface) bool { |
| 117 | nullValue, isNull := secondValue.(NullValue) |
| 118 | if isNull { |
| 119 | return nullValue.isSmallerThan(value) |
| 120 | } |
| 121 | |
| 122 | secondValueAsInteger, isInteger := secondValue.(IntegerValue) |
| 123 | if !isInteger { |
| 124 | log.Fatal("Can't compare Integer with other type") |
| 125 | } |
| 126 | |
| 127 | return value.Value > secondValueAsInteger.Value |
| 128 | } |
| 129 | func (value StringValue) isGreaterThan(secondValue ValueInterface) bool { |
| 130 | nullValue, isNull := secondValue.(NullValue) |
| 131 | if isNull { |