Files
katenary/doc/docs/packages/update.md
Patrice Ferlet c7c18f01cd Fixup documentation
- better gomarkdown generation that now fixed the escaped strings, no
  need to use pandoc anymore
- added workflow image
- upgraded versions of mkdocs requirements
2024-04-10 04:51:45 +02:00

1.4 KiB

update

import "katenary/update"

Update package is used to check if a new version of katenary is available.

Variables

var (
    Version = "master" // reset by cmd/main.go
)

func DownloadFile

func DownloadFile(url, exe string) error

DownloadFile will download a url to a local file. It also ensure that the file is executable.

func DownloadLatestVersion

func DownloadLatestVersion(assets []Asset) error

DownloadLatestVersion will download the latest version of katenary.

type Asset

Asset is a github asset from release url.

type Asset struct {
    Name string `json:"name"`
    URL  string `json:"browser_download_url"`
}

func CheckLatestVersion

func CheckLatestVersion() (string, []Asset, error)

CheckLatestVersion check katenary latest version from release and propose to download it

Generated by gomarkdoc