mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-18 23:12:17 +08:00
Add Comment Block
This commit is contained in:
parent
66fa76f0f0
commit
47190b0bbf
@ -44,6 +44,7 @@ func RecoveryWithWriter(out io.Writer) HandlerFunc {
|
||||
})
|
||||
}
|
||||
|
||||
// RecoveryWithWriterAndCallback returns a middleware for a given writer that recovers from any panics and call the custom function if there was one.
|
||||
func RecoveryWithWriterAndCallback(out io.Writer, fn func(c *Context, err interface{}, brokenPipe bool)) HandlerFunc {
|
||||
var logger *log.Logger
|
||||
if out != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user