Help us shape the future of Go! Take the 2026 Go Developer Survey

build

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Information

type Information struct {
	Name, Version, Branch, Commit, Date, Go string
}

Information holds the build information.

func Info

func Info(n, v, b, c, d string) Information

Info populates the build information.

func (Information) Fields added in v0.1.0

func (i Information) Fields() []interface{}

Fields provides an intuitive way to add the build information to a log entry.

func (Information) String

func (i Information) String() string

String provides the build information as a string.

Jump to

Keyboard shortcuts

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