(x, y string)
| 228 | } |
| 229 | |
| 230 | func compareInt(x, y string) int { |
| 231 | if x == y { |
| 232 | return 0 |
| 233 | } |
| 234 | if len(x) < len(y) { |
| 235 | return -1 |
| 236 | } |
| 237 | if len(x) > len(y) { |
| 238 | return +1 |
| 239 | } |
| 240 | if x < y { |
| 241 | return -1 |
| 242 | } else { |
| 243 | return +1 |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | func comparePrerelease(x, y string) int { |
| 248 | // "When major, minor, and patch are equal, a pre-release version has |