version

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tag string = "v0.0.2-e6ef5ccb"
	// Version is the current version of the program
	Version string = "0.0.1"
	// CommitHash is the current commit hash of the program
	CommitHash string = "unknown"
	// BuildTime is the current build time of the program
	BuildTime string = "unknown"
)

Functions

func GetVersionFromGit

func GetVersionFromGit() (string, error)

Types

type ProgramVersion

type ProgramVersion struct {
	Tag        string `json:"tag"`
	Version    string `json:"version"`
	CommitHash string `json:"commit_hash"`
	BuildTime  string `json:"build_time"`
}

ProgramVersion is the version object of the program

PV is the current version object of the program

func (ProgramVersion) Short

func (v ProgramVersion) Short() string

Short returns the short version of the program

Jump to

Keyboard shortcuts

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