func Recover() nio.MiddlewareFunc {
	return RecoverWithConfig(DefaultRecoverConfig)
}
Recover returns a middleware which recovers from panics anywhere in the chain
and handles the control to the centralized HTTPErrorHandler.
package mw
import (
	"fmt"
	"runtime"
	"github.com/go-nio/nio"
)
type (
	RecoverConfig struct {
		Skipper nio.Skipper
		StackSize int `yaml:"stack_size"`
		DisableStackAll bool `yaml:"disable_stack_all"`
		DisablePrintStack bool `yaml:"disable_print_stack"`
	}
)
var (
	DefaultRecoverConfig = RecoverConfig{
		Skipper:           nio.DefaultSkipper,
		StackSize:         4 << 10,  
		DisableStackAll:   false,
		DisablePrintStack: false,
	}
)