Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefRec = NewRecover(os.Stderr)
)
Functions ¶
func RecoverFunc ¶
func RecoverFunc(fun RecoverFuncType, w io.Writer) func()
Types ¶
type Recover ¶
type Recover struct {
// contains filtered or unexported fields
}
func NewRecover ¶
func (*Recover) ReturnFunc ¶
func (r *Recover) ReturnFunc(funcType RecoverFuncType) func()
func (*Recover) Run ¶
func (r *Recover) Run(funcType RecoverFuncType)
type RecoverFuncType ¶
type RecoverFuncType func() (e error)
Click to show internal directories.
Click to hide internal directories.