Documentation ¶
Overview ¶
Package updater checks for updates to Doodle.
Index ¶
Constants ¶
View Source
const ( Major int = iota Minor Patch )
Some semantic version indexing constants, to parse the result of ParseSemver with more semantic code.
Variables ¶
This section is empty.
Functions ¶
func ParseSemver ¶
ParseSemver parses a Project: Doodle semantic version number into its three integer parts. Historical versions of the game looked like either "0.1.0-alpha" or "0.7.0" and the given version string is expected to match that pattern.
Types ¶
type VersionInfo ¶
type VersionInfo struct { LatestVersion string `json:"latestVersion"` DownloadURL string `json:"downloadUrl"` }
VersionInfo holds the version.json data for self-update check.
func (VersionInfo) IsNewerVersionThan ¶
func (i VersionInfo) IsNewerVersionThan(versionString string) bool
IsNewerVersionThan checks if the version.json houses a newer game version than the currently running game's version string.
Click to show internal directories.
Click to hide internal directories.