version

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version provides build information and version details for Lesser.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the application version, set by build flags or defaults to "dev"
	Version = "dev"
	// GitCommit is the Git commit hash, extracted from build info or "unknown"
	GitCommit = "unknown"
	// BuildTime is the build timestamp, extracted from build info or "unknown"
	BuildTime = "unknown"
	// GoVersion is the Go version used to build the application
	GoVersion = "unknown"
)

Functions

func GetBuildInfo

func GetBuildInfo() map[string]string

GetBuildInfo returns comprehensive build information as a map

func GetBuildTime

func GetBuildTime() string

GetBuildTime returns the build timestamp

func GetFullVersionString

func GetFullVersionString() string

GetFullVersionString returns a formatted version string with all details

func GetGitCommit

func GetGitCommit() string

GetGitCommit returns the Git commit hash

func GetGoVersion

func GetGoVersion() string

GetGoVersion returns the Go version used to build

func GetVersion

func GetVersion() string

GetVersion returns the current application version

Types

This section is empty.

Jump to

Keyboard shortcuts

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