version

package
v0.0.0-...-9e3aff1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Release the git tag of the current build, used with -X version.Release=$(git describe --tags HEAD || git describe --all HEAD)
	Release = "0.0"

	// Build the git commit of the current build, used with -X version.Build=$(git rev-parse --short HEAD)
	Build = "00000"

	// Date the current datetime RFC like for the build, used with -X version.Date=$(date +%FT%T%z)
	Date = "2017-10-21T00:00:00+0200"

	// Package the current package name of the build directory, used with -X version.Package=$(basename $(pwd))
	Package = "noname"
)

Functions

func GetAppId

func GetAppId() string

GetAppId return string about package name, release and runtime info

func GetAuthor

func GetAuthor() string

GetAuthor return string about author name and repository info

func GetHeader

func GetHeader() string

GetAuthor return string about author name and repository info

func GetInfo

func GetInfo() string

GetInfo return string about current build and version

func GetPrefix

func GetPrefix() string

func Info

func Info()

Info print all information about current build and version

Types

This section is empty.

Jump to

Keyboard shortcuts

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