vsphere/internal/helper/viapi/vim_helper.go
func (v VSphereVersion) olderVersion(other VSphereVersion) bool {
	// Assuming here that VMware is a loooong way away from having a
	// major/minor/patch that's bigger than 254.
	vc := v.Major<<16 + v.Minor<<8 + v.Patch
	vo := other.Major<<16 + other.Minor<<8 + other.Patch
	return vc < vo
}
func (v VSphereVersion) olderVersion(other VSphereVersion) bool {
	// Assuming here that VMware is a loooong way away from having a
	// major/minor/patch that's bigger than 254.
	vc := v.Major<<16 + v.Minor<<8 + v.Patch
	vo := other.Major<<16 + other.Minor<<8 + other.Patch
	return vc < vo
}
func ( v VSphereVersion ) olderVersion ( other VSphereVersion ) bool { // Assuming here that VMware is a loooong way away from having a // major/minor/patch that's bigger than 254. vc := v . Major << 16 + v . Minor << 8 + v . Patch vo := other . Major << 16 + other . Minor << 8 + other . Patch return vc < vo }
// olderVersion checks the major/minor/patch part of the version to see it's
// older than the version supplied in other. This is broken off from the main
// test so that it can be checked in Newer before the build number is compared.
olderVersion checks the major / minor / patch part of the version to see it s older than the version supplied in other . This is broken off from the main test so that it can be checked in Newer before the build number is compared .