Documentation
¶
Overview ¶
Write a function `CountingWriter` with the signature below that, given an `io.Writer`, returns a new `Writer` that wraps the original, and a pointer to an `int64` variable that any moment contains the number of bytes written to the new `Writer`. ``` func CounterWriter(w io.Writer) (io.Writer, *int64) ```
Click to show internal directories.
Click to hide internal directories.