Registry / web-framework / ekyoung-gin-nice-recovery

ekyoung-gin-nice-recovery

JSON →
library0.0.0-20160510022553-1654dca486dbgogounverified

A Gin middleware for nice panic recovery with customizable error responses.

go get github.com/ekyoung/gin-nice-recovery
INSTALL
IMPORT
SIG · EKYOUNG-GIN-NICE-R
E
ekyoung-gin-nice-recovery
web-frameworkgov0.0.0-20160510022553-1654dca486db
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gin_nice_recovery
✓ github.com/ekyoung/gin-nice-recovery

Sets up nice recovery middleware in Gin.

package main import ( "github.com/ekyoung/gin-nice-recovery" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.Use(gin_nice_recovery.Recovery(func(c *gin.Context, err interface{}) { c.JSON(500, gin.H{"error": "nice recovery"}) })) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160510022553-1654dca486dblatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
ekyoung-gin-nice-recovery — go get ekyoung-gin-nice-recovery · libregistry