logutil

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorChain

func ErrorChain(err error) []string

ErrorChain returns the error and its unwrap chain as a slice of "type: message" strings. Supports multi-errors via Unwrap() []error (e.g. errors.Join).

func Stacktrace

func Stacktrace(skip int) []string

Stacktrace returns a best-effort stack trace for the current goroutine as a slice of "file:line function" strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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