version

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = empty
	Branch    = empty
	Commit    = empty
	BuildDate = empty
)

Values are provided by compile time -ldflags.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string    `json:"version"`
	Branch    string    `json:"branch"`
	Commit    string    `json:"commit"`
	BuildDate time.Time `json:"buildTime"`
	GoVersion string    `json:"goVersion"`
	Platform  string    `json:"platform"`
}

Info contains build information supplied during compile time.

func Get

func Get() Info

Get returns the build-in version and platform information

Jump to

Keyboard shortcuts

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