stacktrace

package
v2.0.18+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 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