version

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package version enables setting build-time version using ldflags.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProjectName is the canonical project name set by ldl flags
	ProjectName = ""
	// ProjectURL is the canonical project url  set by ldl flags
	ProjectURL = ""
	// Version specifies Semantic versioning increment (MAJOR.MINOR.PATCH).
	Version = "v0.0.0"
	// GitCommit specifies the git commit sha, set by the compiler.
	GitCommit = ""
	// BuildMeta specifies release type (dev,rc1,beta,etc)
	BuildMeta = ""
	// Timestamp specifies the build time, set by the compiler as UNIX timestamp.
	Timestamp = ""
)

Functions

func BuildTime added in v0.27.0

func BuildTime() string

func FullVersion

func FullVersion() string

FullVersion returns a version string.

func UserAgent

func UserAgent() string

UserAgent returns a user-agent string as specified in RFC 2616:14.43 https://tools.ietf.org/html/rfc2616

Types

This section is empty.

Jump to

Keyboard shortcuts

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