Hacker News new | ask | show | jobs
by sanxiyn 23 days ago
What would you prefer?

I do think it is criminal this is not documented (https://pkg.go.dev/io#Copy), but I think io.Copy is fine as an API.

1 comments

it is documented by saying it calls ReadFrom or WriteTo
Sure, but it could be more explicit. See Rust for how it should be done.