Documentation ¶
Overview ¶
Package version enables setting build-time version using ldflags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProjectName is the canonical project name set by ldl flags ProjectName = "" // ProjectURL is the canonical project url set by ldl flags ProjectURL = "" // Version specifies Semantic versioning increment (MAJOR.MINOR.PATCH). Version = "v0.0.0" // GitCommit specifies the git commit sha, set by the compiler. GitCommit = "" // BuildMeta specifies release type (dev,rc1,beta,etc) BuildMeta = "" // Timestamp specifies the build time, set by the compiler as UNIX timestamp. Timestamp = "" )
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns a user-agent string as specified in RFC 2616:14.43 https://tools.ietf.org/html/rfc2616
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.