version

package
v2.0.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package version checks for newer engram releases on GitHub.

Index

Constants

View Source
const (
	EnvNoUpdateCheck = "ENGRAM_NO_UPDATE_CHECK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	Status  CheckStatus
	Message string
}

func CheckLatest

func CheckLatest(current string) CheckResult

CheckLatest compares the running version against the latest GitHub release. It distinguishes between up-to-date, update available, and check failures.

type CheckStatus

type CheckStatus string
const (
	StatusUpToDate        CheckStatus = "up_to_date"
	StatusUpdateAvailable CheckStatus = "update_available"
	StatusCheckFailed     CheckStatus = "check_failed"
)

Jump to

Keyboard shortcuts

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