Documentation
¶
Overview ¶
Package stamp provides build-time workspace status information at runtime, including the revision version and build metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // User is the username of the account that built the library. User string // Host is the unqualified hostname of the machine the library was // built on. Host string )
View Source
var ( // Commit is the unique identifier of the revision that was built // to produce this library. If using the provided `workspace_status` // script, this is the SHA-1 hash of the revision. Commit string // Branch is the name of the branch the above commit was on at // the time the library was built. // N.B. When using Git, most CI systems check out a specific commit, // meaning Git is in a detached HEAD state, so this will usually be // "HEAD" for official releases. Branch string // Version is a human-readable alternative to Commit, providing // more context about where we are in the history. If using the // provided `workspace_status` commands for Git, this is the output // of `git describe --always --tags --dirty`. Version string )
Functions ¶
func BuildSummary ¶
func BuildSummary() string
BuildSummary returns a human-readable summary of the build metadata, e.g. "built with go1.11.5 by george@dev on 2019-02-01T22:45:21Z".
func CodeSummary ¶
func CodeSummary() string
CodeSummary returns a human-readable summary of the revision metadata, e.g. "1.0.0-1-g157ed0b (157ed0bb7b7de3c4c2e750a5b9ee675e2997ea80, master)".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.