I think here, writing your own buffer type would be the most sensible approach.
On Wed, 2018-09-19 at 10:14 -0700, John Floren wrote: > What's the right way to handle this? Write our own bufio that lets us > reset > the error and io.Writer while preserving unwritten data? -- 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.