version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoBuildInfo = errors.New("No binary build info")

ErrNoBuildInfo is an error indicating that we could not fetch any binary build info.

Functions

func Compiled

func Compiled() (time.Time, error)

Compiled - Get time this binary was compiled.

func GitCommit

func GitCommit() string

GitCommit returns the last commit hash.

func GitDirty

func GitDirty() bool

GitDirty returns true if the binary was compiled with modified files in the VCS working area.

func Semantic

func Semantic() []int

Semantic - Get the structured semantic version of the application binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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