Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoOnErrOrPanic ¶
func DoOnErrOrPanic(err *error, f func())
DoOnErrOrPanic calls f if the value of err is not nil or if the goroutine is panicking. If there is a panic, it is rethrown.
DoOnErrOrPanic should be called as a defer function to properly handle panics:
defer DoOnErrOrPanic(&returnErr, func() {
db.Close()
})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.