errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, options ...bool) (isError bool)

Check: Display errors in convenient way with stack display "options" set to true -> exit on error. NOTICE: exit option must not be used if a "defer" function is initiated, otherwise, defer will never be applied !

func WarnCallerMess

func WarnCallerMess(skip ...int) string

WarnCallerMess: return information about caller that can be interpreted and clickable inside LiteIde. Output format: "./main.go:114 Warning!,"

Types

type DebugFunc

type DebugFunc struct {
	Frames *runtime.Frames

	File,
	Caller string
	Line,

	Skip int
}

DebugFunc: Retrieve information about the caller function include filename, function name and line number.

func DebugFuncNew

func DebugFuncNew(skip ...int) (d *DebugFunc)

func (*DebugFunc) GetCallerFunctionName

func (d *DebugFunc) GetCallerFunctionName() string

func (*DebugFunc) GetCurrentFunctionName

func (d *DebugFunc) GetCurrentFunctionName() string

type FuncTracer

type FuncTracer struct {
	FiltersInclude,
	FiltersExclude []string
	// contains filtered or unexported fields
}

Get all information on runtime from callers functions include memory, processor, Goroutine ...

func FuncTracerNew

func FuncTracerNew(filename string, delay float64) (*FuncTracer, error)

func (*FuncTracer) Close

func (ft *FuncTracer) Close() (err error)

func (*FuncTracer) Write

func (ft *FuncTracer) Write(line string) error

Jump to

Keyboard shortcuts

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