Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(releasesGetterFn ReleasesGetter, currentRelease string) (*semver.Version, error)
Check returns a newer version, or an error or nil for both if no error happened, and no updates are needed.
func GetGithubReleaseURL ¶
func IsUnreleased ¶
IsUnreleased tells if the version in parameter is an unreleased version or not. An unreleased version is a development version from the semantic versioning point of view. This doesn't probe GitHub for its metadata on the version, and this is intended. A release flagged as a pre-release in GitHub is just to mark mainnet incompatibility.
Types ¶
type ReleasesGetter ¶
ReleasesGetter return the list of releases as semantic version strings
func BuildGithubReleasesRequestFrom ¶
func BuildGithubReleasesRequestFrom(ctx context.Context, releasesURL string) ReleasesGetter
Click to show internal directories.
Click to hide internal directories.