Example #1
0
func (sv SemVer) LessThanMajor(versionB SemVer) bool {
	majorA := semver.Version(sv).Major
	majorB := semver.Version(versionB).Major
	if majorA < majorB {
		return true
	}
	return false
}
Example #2
0
func (sv SemVer) Empty() bool {
	return semver.Version(sv) == semver.Version{}
}
Example #3
0
func (sv SemVer) String() string {
	s := semver.Version(sv)
	return s.String()
}
Example #4
0
func (sv SemVer) LessThanExact(versionB SemVer) bool {
	vA := semver.Version(sv)
	vB := semver.Version(versionB)
	return vA.LessThan(vB)
}