Back to godoc.org
go.opentelemetry.io/collector/internal/version

package version

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Index

Variables

var BuildType = buildDev

BuildType should be one of (dev, release).

var GitHash = "<NOT PROPERLY GENERATED>"

GitHash variable will be replaced at link time after `make` has been run.

var InfoVar = Info([][2]string{
	{"Version", Version},
	{"GitHash", GitHash},
	{"BuildType", BuildType},
	{"Goversion", runtime.Version()},
	{"OS", runtime.GOOS},
	{"Architecture", runtime.GOARCH},
})

InfoVar is a singleton instance of the Info struct.

var Version = "latest"

Version variable will be replaced at link time after `make` has been run.

func IsDevBuild

func IsDevBuild() bool

IsDevBuild returns true if this is a development (local) build.

func IsReleaseBuild

func IsReleaseBuild() bool

IsReleaseBuild returns true if this is a release build.

type Info

type Info [][2]string

Info has properties about the build and runtime.

func (Info) String

func (i Info) String() string

String returns a formatted string, with linebreaks, intended to be displayed on stdout.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier