Go Retry
Retry a Go operation using a delay and a recoverable-error rule.
sethvargo · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/sethvargo/go-retry at v0.7.0. Simulate one failed attempt followed by a successful local operation.
What we tested
v0.7.0. Simulate one failed attempt followed by a successful local operation. Retried once after the synthetic recoverable error and succeeded.