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

proposal: bytes: Buffer should implement io.Seeker #21899

Closed
ZaniaDeveloper opened this issue Sep 15, 2017 · 1 comment
Closed

proposal: bytes: Buffer should implement io.Seeker #21899

ZaniaDeveloper opened this issue Sep 15, 2017 · 1 comment

Comments

@ZaniaDeveloper
Copy link

Hello,

It'd be interesting that the type bytes.Buffer implements interface io.Seeker
I think that it can be used several time if not i can't see how do it simplier than copy byte.Buffer source file and add the missing method.

How do you think about it?

@odeke-em odeke-em changed the title bytes.Buffer should implements io.Seeker proposal: bytes: Buffer should implement io.Seeker Sep 15, 2017
@gopherbot gopherbot added this to the Proposal milestone Sep 15, 2017
@dsnet
Copy link
Member

dsnet commented Sep 15, 2017

Marking this as duplicate of #21592, which has also mentioned why adding Buffer.Seek is problematic.

@dsnet dsnet closed this as completed Sep 15, 2017
@golang golang locked and limited conversation to collaborators Sep 15, 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