Skip to content

Latest commit

 

History

History
 
 

ex7.05

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Exercise 7.5 (P175)

The LimitReader function in the io package accepts an io.Reader r and a number of bytes n, and returns another Reader that reads from r but reports an end-of-file condition after n bytes. Implement it.

    func LimitReader(r io.Reader, n int64) io.Reader