build

package
v0.0.0-...-ac3141b Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBlankTimestamp   = errors.New("build timestamp not set")
	ErrInvalidTimestamp = errors.New("invalid timestamp")
)

Error returned by Time() when timestamp is blank

Functions

func Architecture

func Architecture() string

Exported method for returning the architecture string

func OS

func OS() string

Exported method for returning the os string

func Time

func Time() (time.Time, error)

Returns the build time as a time.Time if not set this will return an error

func TimeStr

func TimeStr() string

Returns the time in string format, if the time is not set this will return n/a

func Version

func Version() string

Exported method for returning the version string

Types

This section is empty.

Jump to

Keyboard shortcuts

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