func (x Version) Compare(y Version) int {
	n := len(x)
	if len(y) < n {
		n = len(y)
	}
	for i := 0; i < n; i++ {
		cmp := x[i] - y[i]
		if cmp != 0 {
			return cmp
		}
	}
	return len(x) - len(y)
}
func (x Version) Compare(y Version) int {
	n := len(x)
	if len(y) < n {
		n = len(y)
	}
	for i := 0; i < n; i++ {
		cmp := x[i] - y[i]
		if cmp != 0 {
			return cmp
		}
	}
	return len(x) - len(y)
}
func ( x Version ) Compare ( y Version ) int { n := len ( x ) if len ( y ) < n { n = len ( y ) } for i := 0 ; i < n ; i ++ { cmp := x [ i ] - y [ i ] if cmp != 0 { return cmp } } return len ( x ) - len ( y ) }
// Compare returns an integer comparing two versions lexicographically.
Compare returns an integer comparing two versions lexicographically .