Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
func GetVersion() string
GetVersion returns the version of Task. By default, this is retrieved from the embedded version.txt file which is kept up-to-date by our release script. However, it can also be overridden at build time using: -ldflags="-X 'github.com/boschglobal/task/v3/internal/version.version=vX.X.X'".
func GetVersionWithBuildInfo ¶
func GetVersionWithBuildInfo() string
GetVersionWithBuildInfo is the same as GetVersion, but it also includes the commit hash and dirty status if available. This will only work when built within inside of a Git checkout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.