Documentation ¶
Overview ¶
Package update provides methods to find the version of the package and update it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION = "v0.6.0"
VERSION of instahelper
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` DownloadURL string `json:"browser_download_url"` Size int `json:"size"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
Asset is a single download and it's various info for a github release
func To ¶
To will replace the current binary with the binary with version ver. Will return error if ver not found Update is allowed to update to a lower version
type Release ¶
type Release struct { Name string `json:"name,omitempty"` Description string `json:"body,omitempty"` Version string `json:"tag_name,omitempty"` URL string `json:"url,omitempty"` ID int `json:"id,omitempty"` PreRelease bool `json:"prerelease,omitempty"` PublishedAt string `json:"published_at,omitempty"` Assets []Asset `json:"assets,omitempty"` InfoURL string `json:"html_url,omitempty"` }
Release is a github release
func ListReleases ¶
ListReleases collects information about github releases
Click to show internal directories.
Click to hide internal directories.