recoverfn

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Raw

type Raw struct {
	RecoverV  interface{}
	RecoverPC uintptr
	PCs       []uintptr
}

func Run

func Run(fn func()) (Raw, bool)

Run runs fn and return Raw{}, true on no-panic on panic it recovers and return a raw stacktrace and panic value to inspect

func (Raw) Frames

func (r Raw) Frames() []runtime.Frame

func (Raw) RePanic

func (r Raw) RePanic()

Jump to

Keyboard shortcuts

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