Add Comment Block

This commit is contained in:
letsfire 2019-10-13 16:30:15 +08:00
parent 66fa76f0f0
commit 47190b0bbf
1 changed files with 1 additions and 0 deletions

View File

@ -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 {