func (src Versions) NewestCompatible(base version.Number) (newest version.Number, found bool) {
	newest = base
	found = false
	for _, agent := range src {
		toolVersion := agent.AgentVersion()
		if newest == toolVersion {
			found = true
		} else if newest.Compare(toolVersion) < 0 &&
			toolVersion.Major == newest.Major &&
			toolVersion.Minor == newest.Minor {
			newest = toolVersion
			found = true
		}
	}
	return newest, found
}
// NewestCompatible returns the most recent version compatible with
// base, i.e. with the same major and minor numbers and greater or
// equal patch and build numbers.
NewestCompatible returns the most recent version compatible with
base, i.e. with the same major and minor numbers and greater or
equal patch and build numbers.
// NewestCompatible returns the most recent version compatible with // base i . e . with the same major and minor numbers and greater or // equal patch and build numbers .
func (src Versions) NewestCompatible(base version.Number) (newest version.Number, found bool) {
	newest = base
	found = false
	for _, agent := range src {
		toolVersion := agent.AgentVersion()
		if newest == toolVersion {
			found = true
		} else if newest.Compare(toolVersion) < 0 &&
			toolVersion.Major == newest.Major &&
			toolVersion.Minor == newest.Minor {
			newest = toolVersion
			found = true
		}
	}
	return newest, found
}
func ( src Versions ) NewestCompatible ( base version . Number ) ( newest version . Number , found bool ) { newest = base found = false for _ , agent := range src { toolVersion := agent . AgentVersion ( ) if newest == toolVersion { found = true } else if newest . Compare ( toolVersion ) < 0 && toolVersion . Major == newest . Major && toolVersion . Minor == newest . Minor { newest = toolVersion found = true } } return newest , found }
NewestCompatible returns the most recent version compatible with
base, i.e.
NewestCompatible returns the most recent version compatible with base i . e .