rhysd / go-github-selfupdate

Binary self-update mechanism for Go commands using GitHub

Home Page:https://godoc.org/github.com/rhysd/go-github-selfupdate/selfupdate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add an options to show download progress

axetroy opened this issue · comments

add an options to show download progress

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.

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