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 NextLargerKey ¶ added in v0.1.3
NextLargerKey finds the next key that is larger than the specified key, but smaller than any other keys that is larger than the specified key
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.