Closed wneessen closed 2 years ago
We were using io.Copy to write to the body string/alternative string to the io.Writer. This placed the byte position of the buffer to be at the EOF after the first WriteTo() call leaving the output of a 2nd call to WriteTo() empty.
io.Copy
WriteTo()
We were using
io.Copy
to write to the body string/alternative string to the io.Writer. This placed the byte position of the buffer to be at the EOF after the firstWriteTo()
call leaving the output of a 2nd call toWriteTo()
empty.