version

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 1 Imported by: 0

Documentation

Overview

Package version provides build-time version information.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version, set at build time via ldflags.
	// Source of truth: VERSION file at repo root.
	Version = "dev"

	// Commit is the git commit hash, set at build time via ldflags.
	Commit = "unknown"

	// BuildDate is the build timestamp, set at build time via ldflags.
	BuildDate = "unknown"
)

Functions

func Full

func Full() string

Full returns a formatted string with all version information.

Types

type Info added in v0.3.0

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"buildDate"`
}

Info represents version information for frontend consumption.

func GetInfo added in v0.3.0

func GetInfo() Info

GetInfo returns the current version information.

Jump to

Keyboard shortcuts

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