Documentation ¶
Index ¶
Constants ¶
const ApplicationName = "Flamenco"
ApplicationName contains the application name.
Variables ¶
var ApplicationGitHash = "set-during-build"
ApplicationGitHash has the Git hash of the commit used to create this build. It is set during the build.
var ApplicationVersion = "set-during-build"
ApplicationVersion is the version number of the application. It is set during the build.
var ReleaseCycle string = "set-during-build"
ReleaseCycle determines whether this is marked as release or whether it's an development version. This is used to determine wehtehr ExtendedVersion() actually returns just the version ("release") or also has the Git hash (any other string).
This is a string and not a boolean, because it must be set by the linker and that only supports strings.
Functions ¶
func ExtendedVersion ¶
func ExtendedVersion() string
ExtendedVersion returns the application version, and includes the Git hash if this is not a release version. See `IsReleaseVersion`.
func FormattedApplicationInfo ¶
func FormattedApplicationInfo() string
FormattedApplicationInfo returns the application name & version as single string.
func InFlamencoHome ¶
InFlamencoHome returns the filename in the 'flamenco home' dir, and ensures that the directory exists.
Types ¶
This section is empty.