appinfo

package
v0.0.0-...-8b9a2a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationName = "Flamenco"

ApplicationName contains the application name.

Variables

View Source
var ApplicationGitHash = "set-during-build"

ApplicationGitHash has the Git hash of the commit used to create this build. It is set during the build.

View Source
var ApplicationVersion = "set-during-build"

ApplicationVersion is the version number of the application. It is set during the build.

View Source
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

func InFlamencoHome(filename string) (string, error)

InFlamencoHome returns the filename in the 'flamenco home' dir, and ensures that the directory exists.

func UserAgent

func UserAgent() string

UserAgent returns the application name & version suitable for the HTTP User-Agent header.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL