README ¶ Retry - Catch Panic In Retries Installation To install the package, run: go get github.com/go-zoox/retry Getting Started err := retry.Retry( func() { c++ if c < 3 { panic("panic error") } }, 3, time.Millisecond, ) License GoZoox is released under the MIT License. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Retry(fn func(), times int, interval time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Retry ¶ func Retry(fn func(), times int, interval time.Duration) error Retry trys to run fn with times and interval Types ¶ This section is empty. Source Files ¶ View all Source files retry.go Click to show internal directories. Click to hide internal directories.