Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchPanic ¶
func CatchPanic(f func()) (err interface{})
CatchPanic calls a function and returns the error if function paniced
func RepeatUntilPanicless ¶
func RepeatUntilPanicless(f func())
RepeatUntilPanicless runs the function repeatly until there is no panic
func RunPanicless ¶
func RunPanicless(f func()) (panicless bool)
RunPanicless calls a function panic-freely
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.