version

package
v0.1.0-rc.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	// Version is a human-friendly version string.
	Version string
	// BuildDate is the date/time on which the application was built.
	BuildDate time.Time
	// GitCommit is the ID (sha) of the last commit to the application's source
	// code that is included in this build.
	GitCommit string
	// GitTreeDirty is true if the application's source code contained
	// uncommitted changes at the time it was built; otherwise it is false.
	GitTreeDirty bool
	// GoVersion is the version of Go that was used to build the application.
	GoVersion string
	// Compiler indicates what Go compiler was used for the build.
	Compiler string
	// Platform indicates the OS and CPU architecture for which the application
	// was built.
	Platform string
}

Version encapsulates all available information about the source code and the build.

func GetVersion

func GetVersion() Version

Jump to

Keyboard shortcuts

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