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{}

Source Files