update

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LATEST_RELEASE_URL = "https://github.com/Karmenzind/kd/releases/latest/download/"
View Source
const TAGLIST_URL = "https://api.github.com/repos/Karmenzind/kd/tags"

Variables

View Source
var LATEST_TAG_FILE = filepath.Join(cache.CACHE_ROOT_PATH, "latest_tag")

Functions

func CompareVersions added in v0.0.4

func CompareVersions(v1, v2 string) int

func GetCachedLatestTag added in v0.0.4

func GetCachedLatestTag() (tag string)

func GetLatestTag added in v0.0.4

func GetLatestTag() (tag string, err error)

func GetNewerVersion

func GetNewerVersion(currentTag string) (tag string, err error)

func UpdateBinary

func UpdateBinary(currentTag string) (err error)

Types

type GithubTag

type GithubTag struct {
	Name string
}

Jump to

Keyboard shortcuts

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