runtime

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerName

func CallerName(skip int) string

CallerName returns the name of the function calling this method. Use the `skip` parameter to go ignore stack frames. This function already ignores its own frame.

func Recover

func Recover(fn func()) error

Types

type FrameData

type FrameData struct {
	Caller   string
	Filename string
	Line     int
}

func Frame

func Frame(skip int) FrameData

Jump to

Keyboard shortcuts

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