stack

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Depth

type Depth int
const (
	// First captures only the first frame.
	First Depth = iota

	// Full captures the entire call stack, allocating more
	// storage for it if needed.
	Full
)

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func Callers

func Callers(skip int, depth Depth) *Stack

func (*Stack) Format

func (st *Stack) Format(s fmt.State, verb rune)

func (*Stack) Frames

func (st *Stack) Frames() []runtime.Frame

func (*Stack) Free

func (st *Stack) Free()

func (*Stack) Next

func (st *Stack) Next() (_ runtime.Frame, more bool)

func (*Stack) String

func (st *Stack) String() string

Jump to

Keyboard shortcuts

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