panics

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package panics exists because the parser package's generated token constants include `any` and `recover` (the MySQL keywords), shadowing the Go builtins at package scope. Handle is usable as a deferred function from that package: recover only works when called directly by a function the panicking goroutine deferred.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(h func(e interface{}))

Handle calls h with the recovered value if the goroutine is panicking. Use as: defer panics.Handle(func(e interface{}) { ... }).

Types

This section is empty.

Jump to

Keyboard shortcuts

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