Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetSupportedFormats

func GetSupportedFormats() []string

func New

func New(ui cli.Ui) *cmd

Types

type Formatter

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

func NewFormatter

func NewFormatter(format string) (Formatter, error)

type RPCVersionInfo

type RPCVersionInfo struct {
	Default int
	Min     int
	Max     int
}

type VersionInfo

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

Jump to

Keyboard shortcuts

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