version

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of AgentX (set via -ldflags or defaults to "dev")
	Version = "dev"
	// GitCommit is the git commit hash
	GitCommit = "unknown"
	// BuildDate is the build timestamp
	BuildDate = "unknown"
)

These variables are set at build time using ldflags

Functions

func GetFullVersion

func GetFullVersion() string

GetFullVersion returns formatted version info with commit and build date

func ReleaseNotesURL added in v0.0.8

func ReleaseNotesURL() string

ReleaseNotesURL returns the latest release notes URL.

func SkipVersion added in v0.0.8

func SkipVersion(version string) error

SkipVersion records a version to ignore until a newer release is available.

Types

type UpdateNotice added in v0.0.8

type UpdateNotice struct {
	Latest  string
	Command string
}

UpdateNotice describes an available update and how to upgrade.

func CheckForUpdate added in v0.0.8

func CheckForUpdate(ctx context.Context) (UpdateNotice, bool, error)

CheckForUpdate returns an update notice when a newer release is available.

Jump to

Keyboard shortcuts

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