Less is needed for the sort interface to compare two Version objects on the slice. If checks if one is less than the other.
(i, j int)
| 96 | // Less is needed for the sort interface to compare two Version objects on the |
| 97 | // slice. If checks if one is less than the other. |
| 98 | func (c SemverCollection) Less(i, j int) bool { |
| 99 | return c[i].Version.LessThan(c[j].Version) |
| 100 | } |
| 101 | |
| 102 | // Swap is needed for the sort interface to replace the Version objects |
| 103 | // at two different positions in the slice. |
nothing calls this directly
no outgoing calls
no test coverage detected