version

package
v1.0.4-0...-804e40f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() string

Get returns the embedded build version (e.g. "v3.0.0"), or "" in dev builds where version.txt has not been generated.

func GetLatestRelease

func GetLatestRelease(updater *selfupdate.Updater) (*selfupdate.Release, error)

func IsLatest

func IsLatest(current string, latest *selfupdate.Release) bool

func IsSet

func IsSet() bool

IsSet reports whether a build version was embedded. Update checks are skipped when it is not, so dev builds never reach out to GitHub.

func NewUpdater

func NewUpdater() (*selfupdate.Updater, error)

func Update

func Update(current string, latest *selfupdate.Release, updater *selfupdate.Updater) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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