Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateInfo ¶
type UpdateInfo struct {
HasUpdate bool `json:"hasUpdate"`
Current string `json:"current"`
Latest string `json:"latest"`
ReleaseURL string `json:"releaseUrl"`
}
UpdateInfo is the result returned to the frontend.
func Check ¶
func Check(currentVersion, source string) (*UpdateInfo, error)
Check compares the current version against the latest release from the given source.
Click to show internal directories.
Click to hide internal directories.