// readLines reads all available lines from a bufio.Scanner and
// returns them as a []string.
readLines reads all available lines from a bufio.Scanner and
returns them as a []string.
// readLines reads all available lines from a bufio . Scanner and // returns them as a [] string .
func readLines(scanner *bufio.Scanner) []string {
	var lines []string
	for scanner.Scan() {
		line := scanner.Text()
		lines = append(lines, line)
	}
	handleReadHistoryErr(scanner.Err())
	return lines
}
func readLines ( scanner * bufio . Scanner ) [ ] string { var lines [ ] string for scanner . Scan ( ) { line := scanner . Text ( ) lines = append ( lines , line ) } handleReadHistoryErr ( scanner . Err ( ) ) return lines }
readLines reads all available lines from a bufio.Scanner and
returns them as a []string.
readLines reads all available lines from a bufio . Scanner and returns them as a [] string .