version

package
v0.0.0-...-bc69434 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildDate = ""
	GitCommit = ""
	Commit    = ""
	GoVersion = ""
	Version   = "develop"
)

Version is loaded via LDFLAGS: VERSION := `git fetch --tags && git tag | sort -V | tail -1` LDFLAGS=-ldflags "-X=github.com/groupe-edf/watchdog/internal/version.Version=$(VERSION)"

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	BuildDate string
	GitCommit string
	GoVersion string
	Commit    string
	Platform  string
	Version   string
}

BuildInfo build informations

func GetBuildInfo

func GetBuildInfo() *BuildInfo

GetBuildInfo get CLI information

func (*BuildInfo) ToJSON

func (buildInfo *BuildInfo) ToJSON() []byte

ToJSON return build info in JSON format

Jump to

Keyboard shortcuts

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