Registry / utility / matryer-try-v1

matryer-try-v1

JSON →
library1.0.0-20150601225556-312d2599e12egogounverified

Package try provides retry functionality for Go operations.

go get gopkg.in/matryer/try.v1
INSTALL
IMPORT
SIG · MATRYER-TRY-V1
M
matryer-try-v1
utilitygov1.0.0-20150601225556-312d2599e12e
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

try
gopkg.in/matryer/try.v1

Retry a function up to 3 times.

package main import ( "fmt" "gopkg.in/matryer/try.v1" ) func main() { err := try.Do(func(attempt int) (bool, error) { return attempt < 3, fmt.Errorf("attempt %d failed", attempt) }) fmt.Println(err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0-20150601225556-312d2599e12elatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
matryer-try-v1 — go get matryer-try-v1 · libregistry