Getting Started

go-retry wraps the go-foundation/pkg/resiliency retry helper for applications that want a compact API surface.

Behavior

  • The provided function is executed immediately.
  • A non-positive attempt count falls back to the default of three attempts.
  • Cancellation from the supplied context stops any further retries.

When to use it

Use go-retry when you want to standardize retry behavior across small packages without importing the full resiliency options surface everywhere.