version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Version   string `json:"Version"`
	GitCommit string `json:"GitCommit"`
	BuildDate string `json:"BuildDate,omitempty"`
	GOVersion string `json:"GOVersion,omitempty"`
	GOARCH    string `json:"GOARCH,omitempty"`
	GOOS      string `json:"GOOS,omitempty"`
}

Options are the options for the version command

func (*Options) BuildVersion

func (v *Options) BuildVersion(short bool) (string, error)

BuildVersion returns a formatted version

Jump to

Keyboard shortcuts

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