errstack

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstWithStack

func FirstWithStack(err error) error

FirstWithStack returns the first error in the chain of errors that has a stack trace associated with it. The chain of errors is determined by repeatedly calling Unwrap() on the err. "First" is defined as the error that is returned by the last call to Unwrap().

func Println

func Println(err error)

Println prints err to standard output. If err represents a chain of errors, Println prints the first error in the chain that has a stack trace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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