Documentation
¶
Overview ¶
Copyright 2026 The GOT Authors. MIT License.
Package version exposes the GOT binary's build-time identity. The Version, Commit, and Date variables are intended to be overridden at build time via:
-ldflags "-X github.com/supunhg/got/internal/version.Version=... \
-X github.com/supunhg/got/internal/version.Commit=... \
-X github.com/supunhg/got/internal/version.Date=..."
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit = "none"
Commit is the short git SHA the binary was built from, or "none" if the build did not inject one.
View Source
var Date = "unknown"
Date is the RFC3339 build timestamp, or "unknown" if the build did not inject one.
View Source
var Version = "1.0.0"
Version is the GOT semantic version (e.g. "0.1.0"). Defaults to "dev" for builds that did not inject a value.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.