Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 337 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 337 Bytes

Exercise 7.2 (P174)

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 at any moment contains the number of bytes written to the new Writer.

    func CountingWriter(w io.Writer) (io.Writer, *int64)