Don't forget io.Pipe: an easy way to transform a Reader to a Writer, or vice versa, if that makes it easier. For example read in a loop into a big, replace as you wish, and write the result to a pipe. And return the reader pair of the pipe. This way you don't have to account the reader's buffering.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.