Documentation
¶
Overview ¶
Package buildinfo holds version and build metadata stamped at compile time via ldflags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" GitCommit = "unknown" GitBranch = "unknown" BuildTime = "unknown" Changelog = "" // commits since last release tag, semicolon-separated )
These variables are set at build time via -ldflags.
Functions ¶
func BuildInfo ¶
BuildInfo returns compile-time and platform metadata. This is the static information appropriate for "thane version" output.
func ContextString ¶ added in v0.4.0
func ContextString() string
ContextString returns a compact multi-line summary for system prompt injection. Includes version, build status, and changelog when available.
func RuntimeInfo ¶
RuntimeInfo returns build metadata plus runtime state (uptime, etc.). Use this for health endpoints and status pages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.