An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/getlantern/errors

Package errors defines error types used across Lantern project. or New() method will create a new error with err as its cause. Wrap will wrap err, returning nil if err is nil. If err is an error from Go's standard library, errors will extract details from that error, at least the Go type name and the return value of err.Error(). One can record the operation on which the error occurred using Op(): One can also record additional data: When used with github.com/getlantern/ops, Error captures its current context and propagates that data for use in calling layers. When used with github.com/getlantern/golog, Error provides stacktraces: It's the caller's responsibility to avoid race conditions accessing the same error instance from multiple goroutines.
4 versions
Latest release: almost 3 years ago
336 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/getlantern/errors

Dependent Repos 0