version

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version exposes build-time version metadata (version, commit, build date, Go runtime) for dployr binaries. Values are injected via ldflags and surfaced through helpers in this package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// These will be set at build time via -ldflags
	Version   = "dev"
	GitCommit = "unknown"
	BuildDate = "unknown"
	Component = "unknown" // "cli" or "daemon"
)

Functions

func Short

func Short() string

Short returns just the version number

Types

type Info

type Info struct {
	Version   string `json:"version"`
	GitCommit string `json:"git_commit"`
	BuildDate string `json:"build_date"`
	Component string `json:"component"`
	GoVersion string `json:"go_version"`
	Platform  string `json:"platform"`
}

Info holds version information

func Get

func Get() Info

Get returns version information

func (Info) String

func (i Info) String() string

String returns a formatted version string

Jump to

Keyboard shortcuts

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