Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bytes: Buffer.ReadString Not expect EOF #20917

Closed
gooid opened this issue Jul 6, 2017 · 1 comment
Closed

bytes: Buffer.ReadString Not expect EOF #20917

gooid opened this issue Jul 6, 2017 · 1 comment

Comments

@gooid
Copy link

gooid commented Jul 6, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.8.3 windows/amd64

What operating system and processor architecture are you using (go env)?

What did you do?

https://play.golang.org/p/GfynWFmLTW

What did you expect to see?

[97 98 99 10] <nil>
[100 101 102 10] <nil>
[103] <nil>
[] EOF

[97 98 99 10] <nil>
[100 101 102 10] <nil>
[103] <nil>
[] EOF

What did you see instead?

[97 98 99 10] <nil>
[100 101 102 10] <nil>
[103] <nil>
[] EOF

[97 98 99 10] <nil>
[100 101 102 10] <nil>
[103] EOF
@davecheney
Copy link
Contributor

This is working as intended and documented, https://golang.org/pkg/bufio/#Reader.ReadString

We don't the issue tracker to ask questions. Please see https://golang.org/wiki/Questions for good places to ask. Thanks.

@golang golang locked and limited conversation to collaborators Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants