stack

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	File     string
	Function string
	Line     int
}

Frame is a simplified version of runtime.Frame

func Call

func Call(skip int) Frame

Call returns the frame of the caller, skipping the given number of frames

func Trace

func Trace(skip int) []Frame

Trace returns a stack trace, skipping the given number of frames

Jump to

Keyboard shortcuts

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