version

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package version provides build-time version information for CodexSentinel CLI.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"     // CLI version tag, e.g., v1.0.0
	Commit    = "unknown" // Git commit SHA
	BuildDate = "unknown" // Build timestamp (e.g., 2025-07-09T12:34:56Z)
)

These variables are intended to be set via -ldflags at build time.

Functions

func FullVersion

func FullVersion() string

FullVersion returns a human-readable version string.

func GetBuildInfo added in v0.2.1

func GetBuildInfo() map[string]interface{}

GetBuildInfo returns detailed build information including module info.

func GetBuildTime added in v0.2.1

func GetBuildTime() (time.Time, error)

GetBuildTime returns the build time as a time.Time if available.

func GetShortCommit added in v0.2.1

func GetShortCommit() string

GetShortCommit returns the short version of the commit hash.

func Info

func Info() map[string]string

Info returns version info as a structured map for JSON/CLI use.

func IsDevelopment added in v0.2.1

func IsDevelopment() bool

IsDevelopment returns true if this is a development build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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