stacktrace

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Source

func Source(skip int) string

Source prints the most recent frame of the stack trace.

Types

type Frame

type Frame uintptr

Frame represents a program counter inside a stack frame. For historical reasons if Frame is interpreted as a uintptr its value represents the program counter + 1.

func Frames

func Frames(skip int) []Frame

Frames returns a stack of callers

func (Frame) File

func (f Frame) File() string

file returns the full path to the file that contains the function for this Frame's pc.

func (Frame) Line

func (f Frame) Line() int

line returns the line number of source code of the function for this Frame's pc.

func (Frame) Name

func (f Frame) Name() string

name returns the name of this function, if known.

Jump to

Keyboard shortcuts

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