Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Go ¶
func Go(f func())
Go executes a supplied function and recovers from any panics that happen, logging those panics with a severity sufficient to push them to whatever error recording systems are registered as logrus hooks (i.e. bugsnag). It's meant to be called like: go safely.Go(...)
Types ¶
type ErrPanicked ¶
type ErrPanicked struct {
// contains filtered or unexported fields
}
ErrPanicked is passed to bugsnag when we instrument a panic.
func (*ErrPanicked) Error ¶
func (e *ErrPanicked) Error() string
Click to show internal directories.
Click to hide internal directories.