func compareMajorMinorVersion(a, b *semver.Version) int {
	na := &semver.Version{Major: a.Major, Minor: a.Minor}
	nb := &semver.Version{Major: b.Major, Minor: b.Minor}
	switch {
	case na.LessThan(*nb):
		return -1
	case nb.LessThan(*na):
		return 1
	default:
		return 0
	}
}
func compareMajorMinorVersion(a, b *semver.Version) int {
	na := &semver.Version{Major: a.Major, Minor: a.Minor}
	nb := &semver.Version{Major: b.Major, Minor: b.Minor}
	switch {
	case na.LessThan(*nb):
		return -1
	case nb.LessThan(*na):
		return 1
	default:
		return 0
	}
}
func compareMajorMinorVersion ( a , b * semver . Version ) int { na := & semver . Version { Major : a . Major , Minor : a . Minor } nb := & semver . Version { Major : b . Major , Minor : b . Minor } switch { case na . LessThan ( * nb ) : return - 1 case nb . LessThan ( * na ) : return 1 default : return 0 } }
// compareMajorMinorVersion returns an integer comparing two versions based on
// their major and minor version. The result will be 0 if a==b, -1 if a < b,
// and 1 if a > b.
compareMajorMinorVersion returns an integer comparing two versions based on their major and minor version . The result will be 0 if a == b - 1 if a < b and 1 if a > b .