paniclog

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package paniclog provides a handler for panicking code that logs the panic to an io.Writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(pval interface{}, w io.Writer) error

Handle handles a panic value, logging it to the given io.Writer. Returns the error version of the panic, if any.

func Recover

func Recover(err *error, w io.Writer)

Recover recovers a panic and appends it into the given error pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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