panic

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package panic contains middleware for panics (inside HTTP handlers) logging using "zap" package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *zap.Logger) mux.MiddlewareFunc

New creates mux.MiddlewareFunc for panics (inside HTTP handlers) logging using "zap" package. Also it allows to respond with JSON-formatted error string instead empty response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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