version

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version provides version information for the zvuk-grabber application. Version information is injected at build time via ldflags and can be accessed programmatically or through the CLI version command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version of the build. It can be overridden via ldflags.
	Version = "1.0.0"
	// Commit is the short git SHA embedded at build time (or "none").
	Commit = "none"
	// BuildTime is the UTC build timestamp embedded at build time.
	BuildTime = "unknown"
)

Functions

func AttachCobraVersionCommand

func AttachCobraVersionCommand(root *cobra.Command)

AttachCobraVersionCommand attaches a `version` subcommand to the provided root command. It prints detailed build info.

func Full

func Full() string

Full returns a human-readable version string with commit and build time.

func Short

func Short() string

Short returns only the semantic version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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