Skip to content

Latest commit

 

History

History
 
 

ex7.02

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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)