build

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info() map[string]string

Info returns current build info.

Types

type Metadata

type Metadata struct {
	// Hash contains the information of the last git commit hash.
	Hash string
	// User contains the username that built the binary.
	User string
	// Time contains the information when the binary is being built.
	Time string
}

Metadata is information set on binary build.

func New

func New(hash, user, time string) *Metadata

New creates the metadata.

Jump to

Keyboard shortcuts

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