buildinfo

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionMajor = 0        // Major version component of the current release
	VersionMinor = 14       // Minor version component of the current release
	VersionPatch = 0        // Patch version component of the current release
	VersionMeta  = "stable" // Version metadata to append to the version string
)

Variables

This section is empty.

Functions

func Instrument

func Instrument(ctx context.Context)

Instrument logs the version, git commit hash, and timestamp from the runtime build info. It also sets metrics.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

func Version

func Version() string

Version returns the version of the whole story-monorepo and all binaries built from this git commit.

func VersionWithMeta

func VersionWithMeta() string

VersionWithMeta holds the textual version string including the metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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