version

package
v1.13.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MPL-2.0 Imports: 10 Imported by: 40 modules, 39 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

Index

Constants

View Source
const (
	PrettyFormat string = "pretty"
	JSONFormat   string = "json"
)

Variables

This section is empty.

Functions

func GetSupportedFormats added in v1.8.1

func GetSupportedFormats() []string

func New

func New(ui cli.Ui) *cmd

Types

type Formatter added in v1.8.1

type Formatter interface {
	Format(info *VersionInfo) (string, error)
}

func NewFormatter added in v1.8.1

func NewFormatter(format string) (Formatter, error)

type RPCVersionInfo added in v1.8.1

type RPCVersionInfo struct {
	Default int
	Min     int
	Max     int
}

type VersionInfo added in v1.8.1

type VersionInfo struct {
	HumanVersion string `json:"-"`
	Version      string
	Revision     string
	Prerelease   string
	BuildDate    time.Time
	RPC          RPCVersionInfo
}

Jump to

Keyboard shortcuts

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