version

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 3 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 = ""
)

Functions

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