use bufio.Scanner with ScanLines for input, instead of fmt.Scanln

hat tip to @razzius for reporting this and offering a fix!