SIGN IN SIGN UP

Fix env.WriteTo count return

Some calls like json.Encoder.Encode mask the number of bytes written to
an io.Writer. The solution provides a wrapper io.Writer around the
actual io.Writer that allows multiple calls to Write to be considered as
one and allow access to this count.

Signed-off-by: Pierre Wacrenier <pierre.wacrenier@gmail.com>
P
Pierre Wacrenier committed
0cd30cf3991de1b491cac3c0cecdc976f0098f29
Parent: 9b2afa0