update

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoUpdate

func AutoUpdate(currentVersion, shannonDir string) string

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 DoUpdate

func DoUpdate(currentVersion string) (string, 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

Jump to

Keyboard shortcuts

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