Registry /
web-framework / ekyoung-gin-nice-recovery
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.