oh man, how did I miss this huge bug o_O
Thanks, I updated the blog post ince again.
I added a link to your example with the goroutine, and while it's probably the best approach it does add more complexity.
Can you help me better understand the difference between using a pipe and copying the memory?
It's probably a stupid question but I'm not quite sure I understand the problem. Are you saying that allocation wise, using copy vs piping is the same thing, but the difference is that using copy requires that we read the entire source in memory instead of reading by small chunks? (which could be a problem in case of big files)
If that's the case, wouldn't something like bufio helps?
Again, I realize it might sound like a stupid question but I would like to make sure I fully understand the problem.
Thanks