Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` DownloadURL string `json:"browser_download_url"` Version string `json:"-"` Size int64 `json:"size"` }
Asset represents github release asset
func GetGithubLatestRelease ¶
GetGithubLatestRelease returns latest release asset
type GithubReleases ¶
type GithubReleases struct {
Asset []Asset `json:"assets"`
}
GithubReleases ...
type WriteCounter ¶
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
Click to show internal directories.
Click to hide internal directories.