version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LatestReleaseURL = "https://api.github.com/repos/jrodeiro5/skillgraph-mcp/releases/latest"

LatestReleaseURL is the GitHub Releases API endpoint queried by FetchLatestTag. Exposed (not const) so tests can point it at httptest.

View Source
var Version string

Functions

func Compare added in v1.1.0

func Compare(a, b string) (int, error)

Compare returns -1 if a < b, 0 if equal, +1 if a > b. Inputs must be dot-separated numeric versions (e.g. "1.0.0"); leading "v" is tolerated. Pre-release suffixes like "-rc1" are not interpreted — segments containing non-numeric characters cause an error.

func FetchLatestTag added in v1.1.0

func FetchLatestTag(ctx context.Context) (string, error)

FetchLatestTag returns the latest release tag (without any leading "v") from the GitHub Releases API. Callers should treat the version check as best-effort — any network/parsing failure returns ("", error) so the caller can degrade gracefully rather than block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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