stacktrace

package
v2.0.26+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: GPL-3.0 Imports: 3 Imported by: 25

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