4 ms·
Your example exposes an edge of Go that speaks to this essay. Yes io.Copy works with any Reader and Writer but dig into the documentation and there's a runtime
by mattbee 4y ago
Your example exposes an edge of Go that speaks to this essay.
Yes io.Copy works with any Reader and Writer but dig into the documentation and there's a runtime check for the revised ReaderFrom and WriterTo interfaces that you might also implement for faster performance. It's just something you have to know, otherwise you will not get an optimal copy.
Go 1 is right on the edge of being a big language, but what might stop it is that Google don't need it to get any bigger.