go-github-selfupdate icon indicating copy to clipboard operation
go-github-selfupdate copied to clipboard

add an options to show download progress

Open axetroy opened this issue 5 years ago • 2 comments

axetroy avatar Dec 11 '19 13:12 axetroy

Would be good idea. This is a library so directly calling Print in library code would not be useful. So I think It's nice to provide some callback in a field of Updater struct. User can determine what should be done on each tick of download by setting the callback function.

rhysd avatar Dec 12 '19 09:12 rhysd

Or providing io.Writerfield for writing progress bar would be another option.

rhysd avatar Dec 12 '19 11:12 rhysd