debug

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PackageRegexp = regexp.MustCompile(`lainio/err2/\w*\.`)
)

Functions

func FprintStack

func FprintStack(w io.Writer, si StackInfo)

FprintStack prints the stack trace returned by runtime.Stack to the writer. The StackInfo tells what it prints from the stack.

func PrintStack

func PrintStack(stackLevel int)

PrintStack prints to standard error the stack trace returned by runtime.Stack by starting from stackLevel.

Types

type StackInfo

type StackInfo struct {
	PackageName string
	FuncName    string
	Level       int

	*regexp.Regexp
}

Jump to

Keyboard shortcuts

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