stacktrace

package
Version: v2.0.16+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 3 Imported by: 12

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL