globals

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BinName is the name of the actual binary compiled
	BinName string = ""
	// BinHash is set at runtime with the shasum of the compiled binary
	BinHash string = ""
	// Release is a revision indicator such as a short git commit id
	Release string = ""
	// Version is the standard semantic versioning of this release
	Version string = ""
	// Summary is used on the command line and other cosmetic places
	Summary string = ""
	// EnvPrefix is used as a prefix to all CLI environment variables
	EnvPrefix string = ""
	// DefaultPort is the fallback port to open for connections
	DefaultPort = 3334
	// DefaultListen is the fallback address to listen on
	DefaultListen = ""
	// SlugIntegrity is the expected hash of a Shasums file, without BinName
	// present (set by enjenv)
	SlugIntegrity = ""
	// SumsIntegrity is the expected hash of a Shasums file (set by enjenv)
	SumsIntegrity = ""
	// Hostname is set at runtime with the output of os.Hostname
	Hostname = ""
)

Functions

func BuildFileInfo

func BuildFileInfo() (info times.Timespec, err error)

func BuildInfoString

func BuildInfoString() string

func BuildVersion

func BuildVersion() (version string)

func MakeEnvKey

func MakeEnvKey(name string) (key string)

func MakeEnvKeys

func MakeEnvKeys(names ...string) (keys []string)

func MakeFlagEnvKey added in v0.1.0

func MakeFlagEnvKey(tag, name string) (actual string)

func MakeFlagEnvKeys added in v0.1.0

func MakeFlagEnvKeys(tag, name string) (actual []string)

func MakeFlagName added in v0.1.0

func MakeFlagName(tag, name string) (actual string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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