Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
var Version string
Functions ¶
func Compare ¶ added in v1.1.0
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
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.