buildinfo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package buildinfo provides version information about the current build.

The values "Version" and "Date" should be set via `-ldflags` option during build. Sample command to build:

$ VER_APP="$(git describe --tag)"
$ go build -ldflags="-X 'main.Version=${VER_APP}'" ./path/to/main.go

Index

Constants

This section is empty.

Variables

View Source
var Date = "" // YYYY-MM-DD

Date is dynamically set at build time in the Makefile.

View Source
var Version = ""

Version is dynamically set by the toolchain or overridden by the Makefile.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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