package
2.0.0+incompatible
Repository: https://github.com/chenchun/client-go.git
Documentation: pkg.go.dev
# Functions
GetCaller returns the caller of the function that calls it.
HandleCrash simply catches a crash and logs an error.
HandlerError is a method to invoke when a non-user facing piece of code cannot return an error and needs to indicate it has been ignored.
RecoverFromPanic replaces the specified error with an error containing the original error, and the call tree when a panic occurs.
# Variables
ErrorHandlers is a list of functions which will be invoked when an unreturnable error occurs.
PanicHandlers is a list of functions which will be invoked when a panic happens.
ReallyCrash controls the behavior of HandleCrash and now defaults true.