version

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "none"
	BuildDate = "unknown"
)

Functions

func String

func String() string

String formats the build metadata for human-readable output (e.g. `app version`).

Types

type Info

type Info struct {
	Version   string
	Commit    string
	BuildDate string
}

Info captures the build metadata in a typed form.

func Get

func Get() Info

Get returns the current build metadata.

Jump to

Keyboard shortcuts

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