mirror of https://github.com/gin-gonic/gin.git
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 {
|
func RecoveryWithWriterAndCallback(out io.Writer, fn func(c *Context, err interface{}, brokenPipe bool)) HandlerFunc {
|
||||||
var logger *log.Logger
|
var logger *log.Logger
|
||||||
if out != nil {
|
if out != nil {
|
||||||
|
|
Loading…
Reference in New Issue