version

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commit = ""

Commit is the git commit hash of the build. This variable is set at build time using ldflags. Default value is empty string if not set during build.

View Source
var Version = "dev"

Version is the version of the application. This variable is set at build time using ldflags. Default value is "dev" if not set during build.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the version string. If Version is "dev" and Commit is empty, attempts to read version from runtime/debug.BuildInfo (for go install builds). If Commit is set, it appends the commit hash to the version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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