Tracking io.Copy Progress in Go

from blog Blog on hjr265.me, | ↗ original
If you are writing Go code for any period, you must have used the io.Copy function. It takes an io.Writer and an io.Reader and copies everything from the reader to the writer until it reaches the end of file (EOF). The function returns the number of bytes copied and an error (if any, other than io.EOF). But this function blocks until the copy...