package internal
Import Path
cloud.google.com/go/internal (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Package-Level Functions (total 4, in which 3 are exported)
Annotate prepends msg to the error message in err, attempting
to preserve other information in err, like an error code.
Annotate panics if err is nil.
Annotate knows about these error types:
- "google.golang.org/grpc/status".Status
- "google.golang.org/api/googleapi".Error
If the error is not one of these types, Annotate behaves
like
fmt.Errorf("%s: %v", msg, err)
Annotatef uses format and args to format a string, then calls Annotate.
Retry calls the supplied function f repeatedly according to the provided
backoff parameters. It returns when one of the following occurs:
When f's first return value is true, Retry immediately returns with f's second
return value.
When the provided context is done, Retry returns with an error that
includes both ctx.Error() and the last error returned by f.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |