version

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildTime is a string timestamp of the binary build time.
	BuildTime = ""

	// Commit is the git commit hash of the binary
	Commit = "dirty"

	// Release is a semantic version tag of the binary.
	Release = "v0.1.0"

	// Prerelease is a semantic version prerelease tag of the binary.
	Prerelease = ""
)

If you want to include these values as defaults at compile time, you can use ldflags: -X github.com/southernlabs-io/go-fw/version.BuildTime=$(date -u '+%Y-%m-%dT%H-%M-%SZ') -X github.com/southernlabs-io/go-fw/version.Commit=$(git rev-parse --short HEAD) -X github.com/southernlabs-io/go-fw/version.Release=$(git describe --tags --always --dirty)

View Source
var SemVer string

SemVer is a valid Semantic Version string which value is: "{Release}+{Commit}.{BuildTime}"

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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