Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BuildTime is a string timestamp of the binary build time. BuildTime = "" // Commit is the git commit hash of the binary Commit = "dirty" // Release is a semantic version tag of the binary. Release = "v0.1.0" // Prerelease is a semantic version prerelease tag of the binary. Prerelease = "" )
If you want to include these values as defaults at compile time, you can use ldflags: -X github.com/southernlabs-io/go-fw/version.BuildTime=$(date -u '+%Y-%m-%dT%H-%M-%SZ') -X github.com/southernlabs-io/go-fw/version.Commit=$(git rev-parse --short HEAD) -X github.com/southernlabs-io/go-fw/version.Release=$(git describe --tags --always --dirty)
View Source
var SemVer string
SemVer is a valid Semantic Version string which value is: "{Release}+{Commit}.{BuildTime}"
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.