updater

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdate

func CheckForUpdate(currentVersion string, silent bool)

CheckForUpdate checks if an update is available and prints a message

func DownloadUpdate

func DownloadUpdate(version string) error

DownloadUpdate downloads the latest version and replaces the current binary

func GetBinaryName

func GetBinaryName() string

GetBinaryName returns the binary name for the current platform

func GetLatestVersion

func GetLatestVersion() (string, error)

GetLatestVersion fetches the latest release version from GitHub

func IsUpdateAvailable

func IsUpdateAvailable(currentVersion string) (bool, string, error)

IsUpdateAvailable checks if a newer version is available

func ShouldCheckForUpdate

func ShouldCheckForUpdate() bool

ShouldCheckForUpdate checks if it's time to check for updates based on last check time

Types

type Release

type Release struct {
	TagName string `json:"tag_name"`
	Name    string `json:"name"`
	Body    string `json:"body"`
	HTMLURL string `json:"html_url"`
}

Release represents a GitHub release

Jump to

Keyboard shortcuts

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