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