version

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version reports the build version of understackctl.

Release builds have these values stamped in by the linker (see .goreleaser.yaml). Builds produced any other way -- `go install github.com/rackerlabs/understackctl@v0.1.0`, or `go build` inside a checkout -- fall back to the module and VCS metadata that the Go toolchain records in the binary, so that `understackctl version` is useful in a bug report no matter how the binary was obtained.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	Date      string `json:"date"`
	GoVersion string `json:"goVersion"`
	Platform  string `json:"platform"`
}

Info describes the running binary.

func Get

func Get() Info

Get resolves build information, preferring linker-stamped values and falling back to the toolchain's embedded build info.

func (Info) Multiline

func (i Info) Multiline() string

Multiline renders the block form used by `understackctl version`.

func (Info) String

func (i Info) String() string

String renders the one-line form used by `understackctl --version`.

Jump to

Keyboard shortcuts

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