internal

package
v0.0.0-...-12e95d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(a, b *Version) int

CompareVersions and see which version is greater

Types

type ReleaseInfo

type ReleaseInfo struct {
	Version     string    `json:"tag_name"`
	URL         string    `json:"html_url"`
	PublishedAt time.Time `json:"published_at"`
}

ReleaseInfo stores information about a release

func CheckForUpdate

func CheckForUpdate(cnf *config.Config, currentVersion string) (*ReleaseInfo, error)

CheckForUpdate checks whether this software has had a newer release on GitHub

type Version

type Version struct {
	VersionParts    [3]int
	PreReleaseParts []string
}

Version contains parsed information about a SemVer version

func ParseVersion

func ParseVersion(version string) (*Version, error)

ParseVersion from a string, returning a Version or error if it's not SemVer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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