proxy.golang.org : github.com/ygrebnov/errorc
Package errorc provides an implementation of an error augmenting a standard library's [error] with additional context. The With function works similarly to fmt.Errorf but is faster. The With function allows wrapping a sentinel error with additional context and later identifying this error using errors.Is. Also, the With function allows wrapping a typed error with additional context and later identifying this error using errors.As. Wrapped error [Error] method returns the original error message and non-empty fields in "key: value" format if key is non-empty or as "value" if key is empty. The Field function is an adaptor for creating error context fields with a key and a value.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/ygrebnov/errorc
License: BSD-3-Clause
Latest release: about 2 months ago
First release: 5 months ago
Namespace: github.com/ygrebnov
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago