version

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate = ""

BuildDate returns the date the binary was built

View Source
var ChangeLog string

ChangeLog returns the full changelog

View Source
var GitCommit string

GitCommit returns the git commit that was compiled. This will be filled in by the compiler.

View Source
var GoVersion = runtime.Version()

GoVersion returns the version of the go runtime used to compile the binary

View Source
var OsArch = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)

OsArch returns the os and arch used to build the binary

View Source
var Version = "dev"

Version returns the main version number that is being run at the moment. Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards compatible manner, and
PATCH version when you make backwards compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

Functions

func ExtractVersionFromChangelog added in v0.7.0

func ExtractVersionFromChangelog(changeLog string)

ExtractVersionFromChangelog is used to extract the latest version referenced in the Changelog, this is our version

Types

This section is empty.

Jump to

Keyboard shortcuts

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