diag

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Caller

func Caller(skipFrames int) string

Caller returns the file and line number of a frame on the caller's stack. If the funtion fails an empty string is returned. skipFrames - the number of frames to skip when determining the caller. Passing a value of 0 will return the immediate caller of this function.

func StackTrace

func StackTrace(skipFrames, totalFrames int) string

StackTrace returns a formatted stack trace string. If the funtion fails an empty string is returned. skipFrames - the number of stack frames to skip before composing the trace string. totalFrames - the maximum number of stack frames to include in the trace string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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