stack

package
v0.0.0-...-281f8ae Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

package stack implements utilities for working with stack traces. interface under development.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

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

func Caller

func Caller(skip int) Frame

func (Frame) Format

func (f Frame) Format(s fmt.State, verb rune)

Format supports the following options:

s  short single line

n  function name

-n function name sans receiver type +n function identifier #n qualified function identifier

d  line number

-d function entry line number #d relative line number

f  source file (relative to package)

-f file path from module +f filesystem file path #f qualified file path

k  package name

+k filesystem package path #k qualified package path

i  "inline" or ""

m  multiline

+m filesystem multiline #v qualified multiline

v  single line

+v filesystem single line #v qualified single line

func (*Frame) RuntimeFrame

func (f *Frame) RuntimeFrame() runtime.Frame

type Frames

type Frames []Frame

func (Frames) Format

func (f Frames) Format(s fmt.State, verb rune)

Jump to

Keyboard shortcuts

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