panics

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT-0 Imports: 4 Imported by: 0

Documentation

Overview

Package panics implements a panic handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithHook

func ContextWithHook(ctx context.Context, hs ...func()) context.Context

ContextWithHook returns a context.Context after adding the panic handler hook h.

func Handle

func Handle(ctx context.Context)

Handle handles panic in the current goroutine. Should be called with defer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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