errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 9 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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