stacktrace

package
v0.0.0-...-9e90a31 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package stacktrace provides helpers for handling stack trace information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunctionName

func GetFunctionName(pc uintptr) string

GetFunctionName is a helper that extracts a simple function name from full name returned by runtime.Func.Name(). This is used to declutter error messages containing function names.

func GetParentFunctionName

func GetParentFunctionName() string

GetParentFunctionName returns the caller's parent function name and source file line number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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