version

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version handles the version information for the guardian cli

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = valueOrFallback(name, func() string { return "guardian" })

	Version = valueOrFallback(version, buildinfo.Version)

	Commit = valueOrFallback(commit, buildinfo.Commit)

	// OSArch is the operating system and architecture combination.
	OSArch = buildinfo.OSArch()

	// HumanVersion is the compiled version.
	HumanVersion = Name + " " + Version + " (" + Commit + ", " + OSArch + ")"

	UserAgent = valueOrFallback(userAgent, func() string {
		return "abcxyz:" + Name + "/" + Version + " (+https://github.com/abcxyz/guardian)"
	})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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