version

package
v0.0.0-...-ccac432 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// These variables should be set during build time using -ldflags
	Version   = "dev"
	GitCommit = "none"
	BuildDate = "unknown"
)

Functions

func GetFull

func GetFull() string

GetFull returns the full version information as a string

func GetShort

func GetShort() string

GetShort returns a short version string using the package variables

func GetVersion

func GetVersion() string

GetVersion returns just the version string

Types

type Info

type Info struct {
	Version   string `json:"version"`
	GitCommit string `json:"gitCommit"`
	BuildDate string `json:"buildDate"`
	GoVersion string `json:"goVersion"`
	Compiler  string `json:"compiler"`
	Platform  string `json:"platform"`
}

Info contains version information

func Get

func Get() Info

Get returns version information

func (Info) Short

func (i Info) Short() string

Short returns a short version string

func (Info) String

func (i Info) String() string

String returns a human-readable version string

Jump to

Keyboard shortcuts

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