LessThan returns true if b is smaller
(b Loc)
| 11 | |
| 12 | // LessThan returns true if b is smaller |
| 13 | func (l Loc) LessThan(b Loc) bool { |
| 14 | if l.Y < b.Y { |
| 15 | return true |
| 16 | } |
| 17 | return l.Y == b.Y && l.X < b.X |
| 18 | } |
| 19 | |
| 20 | // GreaterThan returns true if b is bigger |
| 21 | func (l Loc) GreaterThan(b Loc) bool { |
no outgoing calls
no test coverage detected