runtime

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 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 CallerInfo

type CallerInfo struct {
	Name string
	File string
	Line int
}

CallerInfo holds information about a caller.

func Caller

func Caller() CallerInfo

Caller returns information about the current caller.

func StoreToDatabase(data Payload) error {
	defer stats.NewTiming().Send(runtime.Caller().Name)

	...
}

type GoVersion

type GoVersion struct {
	Major int
	Minor int
	Patch int
	Raw   string
}

GoVersion holds information about a Go version.

func Version

func Version() GoVersion

Version returns information about the current Go version.

func (GoVersion) Before

func (current GoVersion) Before(target GoVersion) bool

Before returns true if the current Go version is before then the target Go version.

func (GoVersion) Equal

func (current GoVersion) Equal(target GoVersion) bool

Equal returns true if the current Go version is equal to the target Go version.

func (GoVersion) Later

func (current GoVersion) Later(target GoVersion) bool

Later returns true if the current Go version is later then the target Go version.

Jump to

Keyboard shortcuts

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