build

package
v0.0.0-...-c408d52 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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 Info

type Info struct {
	// The application version.
	Version string

	// The commit ID of the build.
	Revision string

	// The build time in UTC (year-month-day hour:min:sec).
	BuildTime string

	// The runtime platform (architecture and operating system).
	Platform string

	// The application distribution.
	Distribution string

	// The runtime Go version.
	GoVersion string
}

Info contains build information

func GetInfo

func GetInfo() Info

GetInfo returns the build Info.

func (Info) LongVersion

func (i Info) LongVersion() string

LongVersion returns a pretty printed build summary.

func (Info) ShortVersion

func (i Info) ShortVersion() string

ShortVersion return a pretty printed version summary.

Jump to

Keyboard shortcuts

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