stacktrace

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackFrame

type StackFrame struct {
	AbsPath  string `json:"abs_path"`
	Filename string `json:"filename"`
	Function string `json:"function"`
	LineNo   string `json:"lineno"`
}

type StackTrace

type StackTrace struct {
	Frames []StackFrame `json:"frames"`
}

func Build

func Build(stack []uintptr) StackTrace

func (StackTrace) Inner

func (st StackTrace) Inner() StackFrame

Inner returns the innermost stack frame.

func (StackTrace) Strings

func (st StackTrace) Strings() []string

Strings returns a list of string descriptions of each stack frame.

Jump to

Keyboard shortcuts

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