MCPcopy Index your code
hub / github.com/writefreely/writefreely / compareInt

Function compareInt

semver.go:230–245  ·  view source on GitHub ↗
(x, y string)

Source from the content-addressed store, hash-verified

228}
229
230func 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
247func comparePrerelease(x, y string) int {
248 // "When major, minor, and patch are equal, a pre-release version has

Callers 1

CompareSemverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected