runtimes

package
v0.0.0-...-0871eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentFunc

func CurrentFunc(skip int) string

CurrentFunc is to get current func name

func CurrentFuncV2

func CurrentFuncV2() []byte

CurrentFuncV2 is to get current func name

func DebugPrintStack

func DebugPrintStack()

DebugPrintStack is to print to standard error the stack trace returned by runtime.Stack

func DebugStack

func DebugStack()

DebugStack is to return a formatted stack trace of the goroutine that calls it

func GetOS

func GetOS() string

GetOS is to return os name

func TraceAllHistory

func TraceAllHistory(w io.Writer, separator string)

TraceAllHistory is to display(depending on io.Write) stack trace

Types

type CallerInfo

type CallerInfo struct {
	PackageName  string
	FunctionName string
	FileName     string
	FileLine     int
}

CallerInfo is caller information

func GetStackTrace

func GetStackTrace(separator string) []*CallerInfo

GetStackTrace is to return caller info array

Jump to

Keyboard shortcuts

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