internal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackTrace

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

StackTrace represents a stack trace.

func NewStackTrace

func NewStackTrace(initial_frame string) *StackTrace

NewStackTrace creates a new StackTrace.

Parameters:

  • initial_frame: The initial frame of the stack trace.

Returns:

  • *StackTrace: A pointer to the new stack trace. Never returns nil

func (*StackTrace) AddFrame

func (st *StackTrace) AddFrame(frame string)

AddFrame prepends the frame into the stack trace. Does nothing if the receiver is nil.

Parameters:

  • frame: The frame to add.

func (StackTrace) String

func (st StackTrace) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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