stack

package
v0.0.0-...-b5d9cbe Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package stack provides a utility to capture and format a stack trace. This is not intended to be used directly by Tast tests; use the errors package instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack []uintptr

Stack holds a snapshot of program counters.

func New

func New(skip int) Stack

New captures a stack trace. skip specifies the number of frames to skip from a stack trace. skip=0 records stack.New call as the innermost frame.

func (Stack) String

func (s Stack) String() string

String formats a stack trace to a human-friendly text.

Jump to

Keyboard shortcuts

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