buildinfo

package
v0.0.0-...-d5fa0d2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct{}

Build keeps meta information about the build typically linked at compilation. example:

go build -ldflags "-X 'github.com/hippeus/appbase/internal/buildinfo.version="0.1.0"'"

If no variable is set via linker, Build prints "Version: unknown"

func (Build) String

func (b Build) String() string

func (Build) VersionAsMap

func (b Build) VersionAsMap() map[string]interface{}

Jump to

Keyboard shortcuts

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