version

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package version provides build-time version information for the nuc CLI. Variables are set via ldflags at build time.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version of the binary.
	Version = "dev"

	// Commit is the git commit SHA that produced the binary.
	Commit = "none"

	// Date is the build timestamp in ISO 8601 format.
	Date = "unknown"
)

Build-time variables, set via:

-ldflags "-X github.com/marstid/nuc/pkg/version.Version=v1.0.0
          -X github.com/marstid/nuc/pkg/version.Commit=abc1234
          -X github.com/marstid/nuc/pkg/version.Date=2024-03-20T14:30:00Z"

Functions

func String

func String() string

String returns a formatted version string suitable for display.

Types

This section is empty.

Jump to

Keyboard shortcuts

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