Original post

We’ve already covered basic downloading of files – this post goes beyond that to create a more complete downloader by including progress reporting of the download. This means if you’re pulling down large files you are able to see how the download’s going.
In our basic example we pass the response body into io.Copy() but if we use a TeeReader we can pass our counter to keep track of the progress.