Package Usage: go: github.com/pkg/errors
Package errors provides simple error handling primitives.
The traditional error handling idiom in Go is roughly akin to
which when applied recursively up the call stack results in error reports
without context or debugging information. The errors package allows
programmers to add context to the failure path in their code in a way
that does not destroy the original value of the error.
The errors.Wrap function returns a new error that adds context to the
original error by recording a stack trace at the point Wrap is called,
together with the supplied message. For example
If additional control is required, the errors.WithStack and
errors.WithMessage functions destructure errors.Wrap into its component
operations: annotating an error with a stack trace and with a message,
respectively.
Using errors.Wrap constructs a stack of errors, adding context to the
preceding error. Depending on the nature of the error it may be necessary
to reverse the operation of errors.Wrap to retrieve the original error
for inspection. Any error value which implements this interface
can be inspected by errors.Cause. errors.Cause will recursively retrieve
the topmost error that does not implement causer, which is assumed to be
the original cause. For example:
Although the causer interface is not exported by this package, it is
considered a part of its stable public interface.
All error values returned from this package implement fmt.Formatter and can
be formatted by the fmt package. The following verbs are supported:
New, Errorf, Wrap, and Wrapf record a stack trace at the point they are
invoked. This information can be retrieved with the following interface:
The returned errors.StackTrace type is defined as
The Frame type represents a call site in the stack trace. Frame supports
the fmt.Formatter interface that can be used for printing information about
the stack trace of this error. For example:
Although the stackTracer interface is not exported by this package, it is
considered a part of its stable public interface.
See the documentation for Frame.Format for more details.
13 versions
Latest release: over 5 years ago
98,949 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/pkg/errors
Dependent Repos 64
healthdatahub/outils-pour-la-plateforme-technologique/ingestion-transfo-tools
Last synced: 6 days ago - Pushed: 11 months ago
1024pix/steampipe-plugin-learningcontent
Steampipe plugin to query LCMS contentSize: 101 KB - Last synced: 2 days ago - Pushed: over 1 year ago

1024pix/steampipe-plugin-metabase
Use SQL to query databases, tables, permissions and more from MetabaseSize: 1.22 MB - Last synced: 2 days ago - Pushed: 3 days ago

snps-public/cephfs-foldersize-exporter
Prometheus exporter for CephFS various folder sizesLast synced: 7 months ago - Pushed: 11 months ago
snps-public/rest-samba-config
Rest API used to view (and maybe at some point edit) Samba configurationLast synced: 7 months ago - Pushed: 11 months ago
pocs/mdl-qor-sdk
This SDK is based upon [QOR](https://github.com/qor/qor) and aims to provide a boilerplate for quickly prototyping admin types applications.Last synced: 7 months ago - Pushed: 11 months ago
swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi
Last synced: 7 months ago - Pushed: 11 months ago
clipos/toolkit
CLIP OS toolkit (cosmk)Size: 806 KB - Last synced: 6 days ago - Pushed: over 3 years ago

radiofrance/dib
An opinionated docker image builderSize: 3.61 MB - Last synced: 6 days ago - Pushed: 6 days ago

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

betagouv/sealed-secrets Fork of bitnami-labs/sealed-secrets
A Kubernetes controller and tool for one-way encrypted SecretsSize: 19.2 MB - Last synced: 6 days ago - Pushed: almost 3 years 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 MB - Last synced: 6 days ago - Pushed: over 1 year ago

cea-hpc/fabricmon Fork of dswarbrick/fabricmon
InfiniBand fabric monitoring daemon written in GoSize: 404 KB - Last synced: 6 days ago - Pushed: 6 months ago

cea-hpc/slurm_exporter Fork of vpenso/prometheus-slurm-exporter
Prometheus exporter for performance metrics from Slurm.Size: 3.02 MB - Last synced: 6 days ago - Pushed: 11 months ago

tchapgouv/matrix-media-repo Fork of t2bot/matrix-media-repo
Matrix media repository with multi-domain in mind.Size: 6.2 MB - Last synced: 6 days ago - Pushed: over 1 year ago

1024pix/go-metabase Fork of grokify/go-metabase
Go Client SDK for Metabase - https://github.com/metabase/metabaseSize: 361 KB - Last synced: 2 days ago - Pushed: 7 months ago

1024pix/goauth Fork of grokify/goauth
Utility libraries for Go (aka Golang) API auth including OAuth 2, JWT, TLS Client Authentication and Basic Auth.Size: 737 KB - Last synced: 2 days ago - Pushed: about 1 year ago

1024pix/steampipe-plugin-github Fork of turbot/steampipe-plugin-github
Use SQL to instantly query repositories, users, gists and more from GitHub. Open source CLI. No DB required.Size: 206 KB - Last synced: 2 days ago - Pushed: about 1 year ago

signaux-faibles/opensignauxfaibles Fork of entrepreneur-interet-general/opensignauxfaibles
Plateforme de détection des entreprises fragilesSize: 36.6 MB - Last synced: 6 days ago - Pushed: 3 months ago

radiofrance/icecast_exporter Fork of markuslindenberg/icecast_exporter
Icecast exporter for PrometheusSize: 21.5 KB - Last synced: 6 days ago - Pushed: over 1 year ago

radiofrance/ipahealthcheck_exporter Fork of camptocamp/ipahealthcheck_exporter
Prometheus exporter for exposing ipa-healthcheck tool checks as metricsSize: 60.5 KB - Last synced: 6 days ago - Pushed: almost 4 years ago

radiofrance/process-exporter Fork of ncabatoff/process-exporter
Prometheus exporter that mines /proc to report on selected processesSize: 2.25 MB - Last synced: 6 days ago - Pushed: over 1 year ago

radiofrance/prometheus-logstash-exporter Fork of alxrem/prometheus-logstash-exporter 📦
Prometheus exporter for Logstash metricsSize: 1.31 MB - Last synced: 6 days ago - Pushed: about 5 years ago

betagouv/grafana-scalingo Fork of Scalingo/grafana-scalingo
One click deploy for GrafanaSize: 141 MB - Last synced: 6 days ago - Pushed: almost 7 years ago

tchapgouv/lk-jwt-service Fork of element-hq/lk-jwt-service
Minimal service to provide LiveKit JWTs using Matrix OpenID ConnectSize: 68.4 KB - Last synced: 6 days ago - Pushed: 7 months ago

signaux-faibles/wekan-alerter
wekan-alerterSize: 44.9 KB - Last synced: 6 days ago - Pushed: over 2 years ago


signaux-faibles/IamUpdater
keycloakUpdater pour Signaux-FaiblesSize: 615 KB - Last synced: 6 days ago - Pushed: 11 months ago

signaux-faibles/goup
Serveur minimaliste pour téléverser des fichiers avec une gestion de droitsSize: 63.1 MB - Last synced: 6 days ago - Pushed: over 2 years ago

signaux-faibles/datapi
datAPI - API des applications web signaux-faiblesSize: 43.1 MB - Last synced: 6 days ago - Pushed: about 1 month ago

signaux-faibles/prepare-import
📥 Scripts de préparation à l'importation de données dans le processus d'intégrationSize: 276 KB - Last synced: 6 days ago - Pushed: 4 months ago


