Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
Ensure checks for an error. If there is one it panics, if no error it prints the message (given it is not empty) `message` should describe what is ensured by the call and verification of `err` being `nil`
func ReturnErrOnPanic ¶
func ReturnErrOnPanic(perr *error) func()
ReturnErrOnPanic catches panics, expects them to be of type error, then stores it in the pointer as recovery
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.