version

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GitHubAPIURL = "https://api.github.com/repos/HenryOwenz/cloudgate/releases/latest"

GitHubAPIURL is the URL for the GitHub API to fetch the latest release

View Source
const RepositoryURL = "https://github.com/HenryOwenz/cloudgate"

RepositoryURL is the base URL for the cloudgate repository

Variables

View Source
var Current = "0.1.7"

Current is the current version of cloudgate This will be set during build time

Functions

func ColoredUpdateMessage

func ColoredUpdateMessage() string

ColoredUpdateMessage returns a colored message about version status

func GetLatest

func GetLatest() (string, error)

GetLatest fetches the latest version from GitHub

func IsUpdateAvailable

func IsUpdateAvailable() (bool, string, error)

IsUpdateAvailable checks if a new version is available

Types

type ReleaseInfo

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
	HTMLURL string `json:"html_url"`
}

ReleaseInfo represents the GitHub API response for a release

Jump to

Keyboard shortcuts

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