func GetBoolResponse(question string, defaultAnswer bool, reader *os.File) (bool, error) {
	var result bool
	readr := bufio.NewReader(reader)
	log.Warn(question)

	text, _ := readr.ReadString('\n')
	text = strings.Replace(text, "\n", "", 1)
	if text == "" {
		return defaultAnswer, nil
	}

	if text == "Yes" || text == "YES" || text == "Y" || text == "y" {
		result = true
	} else {
		result = false
	}

	return result, nil
}
// displays the question, scans for the response, if the response is an empty
// string will return default, otherwise will parseBool and return the result.
displays the question, scans for the response, if the response is an empty
string will return default, otherwise will parseBool and return the result.
// displays the question scans for the response if the response is an empty // string will return default otherwise will parseBool and return the result .
func GetBoolResponse(question string, defaultAnswer bool, reader *os.File) (bool, error) {
	var result bool
	readr := bufio.NewReader(reader)
	log.Warn(question)
	text, _ := readr.ReadString('\n')
	text = strings.Replace(text, "\n", "", 1)
	if text == "" {
		return defaultAnswer, nil
	}
	if text == "Yes" || text == "YES" || text == "Y" || text == "y" {
		result = true
	} else {
		result = false
	}
	return result, nil
}
func GetBoolResponse ( question string , defaultAnswer bool , reader * os . File ) ( bool , error ) { var result bool readr := bufio . NewReader ( reader ) log . Warn ( question ) text , _ := readr . ReadString ( '\n' ) text = strings . Replace ( text , " \n " , " " , 1 ) if text == " " { return defaultAnswer , nil } if text == " " || text == " " || text == " " || text == " " { result = true } else { result = false } return result , nil }
displays the question, scans for the response, if the response is an empty
string will return default, otherwise will parseBool and return the result.
displays the question scans for the response if the response is an empty string will return default otherwise will parseBool and return the result .