Top 1.7% dependent repos on proxy.golang.org
proxy.golang.org : github.com/gildas/go-errors
This package combines Go standard errors package (https://pkg.go.dev/errors) and github.com/pkg/errors(https://github.com/pkg/errors). All funcs from both packages are available. On top of them, I added some sentinels for common errors I need all the time. All sentinels are from the same type which contains various information. Whenever a sentinel is used, a StackTrace is also generated. Here is how to use the errors: If you plan to do something with the content of the error, you would try that: Note: You should not use "var details errors.Error", use the pointer version "var details *errors.Error" instead. When several `errors.Error` are chained up, this can be used to extract the ones you want: To return an HTTP Status as an error, you could do this: You can also add more than one _cause_ to an `errors.Error`, turning it into a _multi-error_ container: Finally, errors.Error supports JSON serialization.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/gildas/go-errors
Keywords:
error-handling
, go
License: MIT
Latest release: 7 months ago
First release: over 5 years ago
Namespace: github.com/gildas
Dependent packages: 15
Dependent repositories: 10
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago
github.com/gildas/wess/samples/vue-docker v0.0.0-20231229100712-95714a63d37d
WEb Simple Server1 version - Latest release: over 1 year ago - 1 stars on GitHub
github.com/gildas/git-credential-bitbucket v1.0.5
GIT credential helper for OAuth on Bitbucket Cloud5 versions - Latest release: over 3 years ago - 6 stars on GitHub
github.com/gildas/go-sql v0.0.3
Package go-sql is an SQL library that adds Higher Level capabilities to the standard `database/sq...3 versions - Latest release: over 5 years ago - 0 stars on GitHub
Check this option to include packages that no longer depend on this package in their latest version but previously did.