version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionMajor       = 2022  // Major version component of the current release
	VersionMinor       = 99    // Minor version component of the current release
	VersionMicro       = 99    // Patch version component of the current release
	VersionModifier    = "dev" // Modifier component of the current release
	VersionKeyCreated  = "AmcVersionCreated"
	VersionKeyFinished = "AmcVersionFinished"
)

see https://calver.org

Variables

View Source
var (
	MajorVersionNumber = 0
	MinorVersionNumber = 8
	RevisionNumber     = 1

	BuildNumber string
	BuildTime   string
	GoVersion   string
)
View Source
var (
	// Following vars are injected through the build flags (see Makefile)
	GitCommit string
	GitBranch string
	GitTag    string
)
View Source
var Version = func() string {
	return fmt.Sprintf("%d.%02d.%d", VersionMajor, VersionMinor, VersionMicro)
}()

Version holds the textual version string.

View Source
var VersionWithMeta = func() string {
	v := Version
	if VersionModifier != "" {
		v += "-" + VersionModifier
	}
	return v
}()

VersionWithMeta holds the textual version string including the metadata.

Functions

func FormatVersion

func FormatVersion() string

func PrintVersion

func PrintVersion()

func Versionbak

func Versionbak() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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