Edit: no, it doesn't. If you want to change this, you can use https://golang.org/pkg/io/ioutil/#ReadAll instead of bufio scanners.