Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upPartial Line returned from Reader.ReadLine() #28718
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
Please read the docs for |
This comment has been minimized.
This comment has been minimized.
Mea culpa; you are correct this is a non-issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
test.txt
cat test.txt | go run test.go
What did you expect to see?
All bytes returned on one line
What did you see instead?
cat test.txt | go run test.go
n: 100000 m: 10002143548612
100000
n: 100000 m: 10000418366442
100000
n: 100000 m: 10001238194497
100000
n: 100000 m: 10000855912503
99993
panic: Unexpeced return from readline
goroutine 1 [running]:
main.main()
C:/Users//go/src/test.go:33 +0x51b
exit status 2