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 ¶ Variables func Retry(fn func() error, times int, interval time.Duration) error Constants ¶ This section is empty. Variables ¶ View Source var Version = "1.0.3" Version is the current version of the package. Functions ¶ func Retry ¶ func Retry(fn func() error, 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.goversion.go Click to show internal directories. Click to hide internal directories.