Skip to content

proposal: io: pass WriterTo through Pipe #73312

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

Closed
hanwen-flow opened this issue Apr 10, 2025 · 1 comment
Closed

proposal: io: pass WriterTo through Pipe #73312

hanwen-flow opened this issue Apr 10, 2025 · 1 comment
Labels
Milestone

Comments

@hanwen-flow
Copy link

hanwen-flow commented Apr 10, 2025

Proposal Details

It seems that io.PipeReader could implement WriterTo, such that connecting two files using a io.Pipe (a pattern common inside docker and friends) would use copy_file_range.

I coded up a prototype in https://go-review.googlesource.com/c/go/+/664395. This would add PipeReader.WriteTo.

@gopherbot gopherbot added this to the Proposal milestone Apr 10, 2025
@Jorropo
Copy link
Member

Jorropo commented Apr 11, 2025

I agree

@Jorropo Jorropo closed this as completed Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants