version

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Major           string `json:"major,omitempty"`
	Minor           string `json:"minor,omitempty"`
	GitVersion      string `json:"gitVersion,omitempty"`
	GitCommit       string `json:"gitCommit,omitempty"`
	GitTreeState    string `json:"gitTreeState,omitempty"`
	BuildDate       string `json:"buildDate,omitempty"`
	GoVersion       string `json:"goVersion,omitempty"`
	Compiler        string `json:"compiler,omitempty"`
	Platform        string `json:"platform,omitempty"`
	AzureSdkVersion string `json:"azureSdkVersion,omitempty"`
}

Info contains all version-related information.

func Get

func Get() Info

Get returns version info initialized from defaults and the runtime environment.

func (Info) String

func (info Info) String() string

String returns version info in a human-friendly format.

Jump to

Keyboard shortcuts

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