version

package
v0.0.0-...-52a80d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "2021-07-14"

Version reflects the latest release date. For local builds, this number isn't really correct. Therefore new commits also won't lead to an update reminder, unless the latest tag is different to this number. This should not be touched manually.

Functions

func CheckForUpdate

func CheckForUpdate(dontRemindFor string) chan bool

CheckForUpdate checks whether the Version-string saved at version.Version is different to the name of the latest tagged GitHub release. If it is, and the release name isn't equal to the `donRemindFor`-parameter, we return true, which stands for "update available". This allows the user to manually say "Don't remind me again for this version". The actual return value is supplied via a channel that's closed after one value has been read.

func GetLatestRemoteVersion

func GetLatestRemoteVersion() string

GetLatestRemoteVersion queries GitHub for the latest Release-Tag and caches it. This value will never be updated during runtime.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL