Documentation
¶
Overview ¶
Package version provides build-time version information. Variables are set via ldflags at compile time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" GitCommit = "unknown" BuildDate = "unknown" BuildYear = "" // Path is the Go module import path for this binary. Defaults to the // expected public path; init() overrides from BuildInfo.Main.Path // when available (reliable for `go install`-produced binaries). Path = "github.com/truestamp/truestamp-cli" )
Set at build time via -ldflags "-X ...". Defaults are used when building without ldflags; init() then tries runtime/debug.ReadBuildInfo to populate plausible values (e.g., for `go install` or `go run` users).
Functions ¶
func Copyright ¶
func Copyright() string
Copyright returns the copyright notice with dynamic end year.
func GoFor ¶
func GoFor() string
GoFor returns the Go toolchain version with platform, e.g. "go1.26.1 for darwin/arm64".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.