Exemple #1
0
func lte(main, other *semver.Version) bool {
	return main.Compare(other) <= 0
}
Exemple #2
0
func eq(main, other *semver.Version) bool {
	return main.Compare(other) == 0
}
Exemple #3
0
func gt(main, other *semver.Version) bool {
	return main.Compare(other) > 0
}