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.
Click to show internal directories.
Click to hide internal directories.