core

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo added in v1.0.1

type BuildInfo struct {
	Version       string `json:"version"`
	GitRevision   string `json:"revision"`
	User          string `json:"user"`
	Host          string `json:"host"`
	GolangVersion string `json:"golang_version"`
	BuildStatus   string `json:"status"`
	BuildTime     string `json:"time"`
}

BuildInfo describes version information about the binary build.

var (
	// Info exports the build version information.
	Info BuildInfo
)

func (BuildInfo) LongForm added in v1.0.1

func (b BuildInfo) LongForm() string

LongForm returns a multi-line version information

This looks like:

``` Version: <version> GitRevision: <git revision> User: user@host GolangVersion: go1.10.2 BuildStatus: <build status> ```

func (BuildInfo) String added in v1.0.1

func (b BuildInfo) String() string

String produces a single-line version info

This looks like:

``` user@host-<version>-<git revision>-<build status> ```

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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