func (i *Installer) CheckInstallation() error {

	for binary, versionRange := range versionMap {
		log.Println("[INFO] checking", binary, "within range", versionRange)

		version, err := i.GetVersionForBinary(binary)
		if err != nil {
			return err
		}

		if err = i.CheckVersion(binary, version); err != nil {
			return err
		}
	}

	return nil
}
func (i *Installer) CheckInstallation() error {

	for binary, versionRange := range versionMap {
		log.Println("[INFO] checking", binary, "within range", versionRange)

		version, err := i.GetVersionForBinary(binary)
		if err != nil {
			return err
		}

		if err = i.CheckVersion(binary, version); err != nil {
			return err
		}
	}

	return nil
}
func ( i * Installer ) CheckInstallation ( ) error { for binary , versionRange := range versionMap { log . Println ( " " , binary , " " , versionRange ) version , err := i . GetVersionForBinary ( binary ) if err != nil { return err } if err = i . CheckVersion ( binary , version ) ; err != nil { return err } } return nil }
// CheckInstallation checks installation of all of the tools
CheckInstallation checks installation of all of the tools