update

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdates

func CheckForUpdates() (bool, string, string, error)

CheckForUpdates checks GitHub for a newer version of Kat Returns: hasUpdate, latestVersion, downloadURL, error

func DownloadAndReplace

func DownloadAndReplace(downloadURL, execPath string, progressWriter io.Writer) error

DownloadAndReplace downloads a new binary and replaces the current one

Types

type ReleaseInfo

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

ReleaseInfo represents the GitHub release API response

Jump to

Keyboard shortcuts

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