Documentation
¶
Overview ¶
Package version provides the build version information for the Codefang binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Binary = 0
Binary is Codefang's API version. It matches the package name.
View Source
var BinaryGitHash = "<unknown>"
BinaryGitHash is the Git hash of the Codefang binary file which is executing.
View Source
var Commit = "none"
Commit is the git commit hash, injected via ldflags at build time.
View Source
var Date = "unknown"
Date is the build date, injected via ldflags at build time.
View Source
var Version = "dev"
Version is the release version, injected via ldflags at build time.
Functions ¶
func InitBinaryVersion ¶
func InitBinaryVersion()
InitBinaryVersion extracts the API version from the package path and sets Binary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.