Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
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.