Documentation ¶
Overview ¶
package github contains features for accessing repos on Github.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHttpError = errors.New("HTTP error")
Functions ¶
This section is empty.
Types ¶
type VersionInfo ¶ added in v0.11.0
type VersionInfo struct { Local string // version of local installation Remote string // latest version available remote Latest string // latest version IsRemoteNewer bool }
VersionInfo represents the version information. All versions are normalized.
func AvailableUpdate ¶
func AvailableUpdate(gitHubOwner, githubRepo, localVersion string) (VersionInfo, error)
AvailableUpdate return the version of the latest release and reports wether the update is newer.
Click to show internal directories.
Click to hide internal directories.