Package Usage: go: go.uber.org/multierr
Package multierr allows combining one or more errors together.
Errors can be combined with the use of the Combine function.
If only two errors are being combined, the Append function may be used
instead.
The underlying list of errors for a returned error object may be retrieved
with the Errors function.
You sometimes need to append into an error from a loop.
Cases like this may require knowledge of whether an individual instance
failed. This usually requires introduction of a new variable.
multierr includes AppendInto to simplify cases like this.
This will append the error into the err variable, and return true if that
individual error was non-nil.
See AppendInto for more information.
Go makes it possible to modify the return value of a function in a defer
block if the function was using named returns. This makes it possible to
record resource cleanup failures from deferred blocks.
multierr provides the Invoker type and AppendInvoke function to make cases
like the above simpler and obviate the need for a closure. The following is
roughly equivalent to the example above.
See AppendInvoke and Invoker for more information.
NOTE: If you're modifying an error from inside a defer, you MUST use a named
return value for that function.
Errors returned by Combine and Append MAY implement the following
interface.
Note that if you need access to list of errors behind a multierr error, you
should prefer using the Errors function. That said, if you need cheap
read-only access to the underlying errors slice, you can attempt to cast
the error to this interface. You MUST handle the failure case gracefully
because errors returned by Combine and Append are not guaranteed to
implement this interface.
14 versions
Latest release: plus de 2 ans ago
28 728 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/go.uber.org/multierr
Dependent Repos 23
rferrand/go-config-files-utils
Go library providing various helpers to work with configuration filesLast synced: plus d'un an ago - Pushed: plus d'un an ago
swh/infra/ci-cd/3rdparty/alertmanager-irc-relay
Last synced: environ un an ago - Pushed: plus d'un an ago
swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi
Last synced: environ un an ago - Pushed: plus d'un an ago
cea-hpc/sshproxy
Proxy SSH connections on a gatewaySize: 10,1 Mo - Last synced: 6 jours ago - Pushed: 3 mois ago

radiofrance/dib
An opinionated DAG image builderSize: 3,89 Mo - Last synced: 5 jours ago - Pushed: 5 jours ago

radiofrance/gitlab-ci-pipelines-exporter
Rewrite of https://github.com/mvisonneau/gitlab-ci-pipelines-exporter without Gitlab API requestsSize: 553 ko - Last synced: 5 jours ago - Pushed: 8 jours ago

radiofrance/image-registry-metrics-exporter
Image Registry Metrics Exporter provides metrics about creation and uploading time of images on OCI registry.Size: 302 ko - Last synced: 5 jours ago - Pushed: 6 jours ago

betagouv/vouch-proxy Fork of vouch/vouch-proxy
an SSO and OAuth / OIDC login solution for Nginx using the auth_request moduleSize: 5,68 Mo - Last synced: 4 jours ago - Pushed: plus d'un an ago

cea-hpc/fabricmon Fork of dswarbrick/fabricmon
InfiniBand fabric monitoring daemon written in GoSize: 404 ko - Last synced: 6 jours ago - Pushed: 12 mois ago

signaux-faibles/opensignauxfaibles Fork of entrepreneur-interet-general/opensignauxfaibles
Plateforme de détection des entreprises fragilesSize: 36,8 Mo - Last synced: 6 jours ago - Pushed: 6 jours ago

radiofrance/ipahealthcheck_exporter Fork of camptocamp/ipahealthcheck_exporter
Prometheus exporter for exposing ipa-healthcheck tool checks as metricsSize: 60,5 ko - Last synced: 5 jours ago - Pushed: plus de 4 ans ago

tchapgouv/lk-jwt-service Fork of element-hq/lk-jwt-service
Minimal service to provide LiveKit JWTs using Matrix OpenID ConnectSize: 68,4 ko - Last synced: 5 jours ago - Pushed: environ un an ago

signaux-faibles/wekan-alerter
wekan-alerterSize: 44,9 ko - Last synced: 6 jours ago - Pushed: presque 3 ans ago

signaux-faibles/goup
Serveur minimaliste pour téléverser des fichiers avec une gestion de droitsSize: 63,1 Mo - Last synced: 6 jours ago - Pushed: presque 3 ans ago

signaux-faibles/datapi
datAPI - API des applications web signaux-faiblesSize: 43,1 Mo - Last synced: 6 jours ago - Pushed: 9 jours ago

pass-culture/pc-monitoring 📦
Size: 176 Mo - Last synced: environ un an ago - Pushed: plus de 3 ans ago

radiofrance/helm-chart-sonarqube Fork of SonarSource/helm-chart-sonarqube
Size: 2,99 Mo - Last synced: environ un an ago - Pushed: environ un an ago

web-et-numerique/factory/llle_project/cozy-stack
Fork of cozy-stack https://github.com/cozy/cozy-stackLast synced: 12 mois ago
