core

package
v0.0.0-...-f0cd508 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiB // 1024
	MiB // 1048576
	GiB // 1073741824
	TiB // 1099511627776 (превышает 1 << 32)
	PiB // 1125899906842624
	EiB // 1152921504606846976
	ZiB // 1180591620717411303424 (превышает 1 << 64)
	YiB // 1208925819614629174706176
)

Variables

This section is empty.

Functions

func Uptime

func Uptime() time.Duration

func Verbose

func Verbose(l *zap.SugaredLogger, a AppInfo)

Types

type AppInfo

type AppInfo struct {
	Name         string `json:"name"`
	BuildTime    string `json:"build_time"`
	BuildVersion string `json:"build_version"`
	GitHash      string `json:"git_commit_hash"`
	GitTag       string `json:"git_tag"`
}

Jump to

Keyboard shortcuts

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