Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Catch ¶
func Catch()
Catch is used for logging panic call stack. Catch should be called with defer.
func CatchWithLogger ¶
CatchWithLogger is a panic handler expected to be deferred.
func RecoverErrorPanic ¶
func RecoverErrorPanic(pErr *error, pRet interface{})
RecoverErrorPanic recovers an panic if needed. If panic recovered, it set the panic content to pErr and set pRet (return value) to default value. Useful when using assertions in types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.