version

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDate

func BuildDate() string

BuildDate returns the build date

func BuiltBy

func BuiltBy() string

BuiltBy returns who built the application

func Commit

func Commit() string

Commit returns the git commit

func Init

func Init(version, commit, date, builtBy string)

Init initializes the version information

func PrintVersion

func PrintVersion()

PrintVersion

func UserAgent added in v0.4.1

func UserAgent() string

func Version

func Version() string

Version returns the application version

Types

type VersionInfo

type VersionInfo struct {
	Version string
	Commit  string
	Date    string
	BuiltBy string
}

func (*VersionInfo) String

func (v *VersionInfo) String() string

String returns the formatted version information

Jump to

Keyboard shortcuts

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