Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoUpdate ¶
AutoUpdate performs a background-safe update check + download. Returns a user-facing message (empty if nothing to report). Skips if: dev build or cache is fresh.
func CheckForUpdate ¶
func CheckForUpdate(currentVersion string) (*selfupdate.Release, bool, error)
func PlatformInfo ¶
func PlatformInfo() string
Types ¶
type UpdateCache ¶
type UpdateCache struct {
// contains filtered or unexported fields
}
func NewUpdateCache ¶
func NewUpdateCache(path string) *UpdateCache
func (*UpdateCache) LatestVersion ¶
func (c *UpdateCache) LatestVersion() string
func (*UpdateCache) Record ¶
func (c *UpdateCache) Record(version string)
func (*UpdateCache) ShouldCheck ¶
func (c *UpdateCache) ShouldCheck() bool
Click to show internal directories.
Click to hide internal directories.