version

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildType added in v0.0.6

func BuildType() string

BuildType retuns whatever buildTime is set to by the linker.

func GitBranch added in v0.0.6

func GitBranch() string

GitBranch will return the envar, compiled-in var, or "dev" if none set. Often this is a tag, so will have a format such as `v1.0.2` or `v1.0.2-5-g12350123` for changes without a specific tag.

This can be used for "short" version strings, while VersionString would be more exact.

func GitHash added in v0.0.6

func GitHash() string

GitHash will return the envar, compiled-in var, or "dev" if none set.

func VersionString added in v0.0.6

func VersionString() string

VersionString returns a formatted version, git hash, and build type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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