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 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
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 IsDevelopment ¶ added in v0.2.1
func IsDevelopment() bool
IsDevelopment returns true if this is a development build.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.