Documentation ¶ Index ¶ func Do(f func() error, logger ...log.Logger) func() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Do ¶ func Do(f func() error, logger ...log.Logger) func() error Do is a function wrapper that will recover from a panic and return the error. Optionally it takes a logger to log the stack trace. Note that it only logs to a single logger. Types ¶ This section is empty. Source Files ¶ View all Source files recovery.go Click to show internal directories. Click to hide internal directories.