Try bufio.Scanner.