version

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = valueOrFallback(name, func() string {
		return "abc"
	})

	Version = valueOrFallback(version, buildinfo.Version)

	Commit = valueOrFallback(commit, buildinfo.Commit)

	// OSArch is the operating system and architecture combination.
	OSArch = buildinfo.OSArch()

	// HumanVersion is the compiled version.
	HumanVersion = Name + " " + Version + " (" + Commit + ", " + OSArch + ")"
)

Functions

func IsReleaseBuild added in v0.6.0

func IsReleaseBuild() bool

IsReleaseBuild returns true if this binary was built by goreleaser as part of the official release process (as opposed to a user just running "go build", or running in a CI environment, or something else).

Types

This section is empty.

Jump to

Keyboard shortcuts

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