{"modulePath":"github.com/bborbe/errors","version":"v1.7.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc AddContextDataToError(ctx context.Context, err error) error\n```\n\n```go\nfunc AddToContext(ctx context.Context, key string, value any) context.Context\n```\n\n```go\nfunc As(err error, target any) bool\n```\n\n```go\nfunc Cause(err error) error\n```\n\n```go\nfunc DataFromContext(ctx context.Context) map[string]any\n```\n\n```go\nfunc DataFromError(err error) map[string]any\n```\n\n```go\nfunc Errorf(ctx context.Context, format string, args ...interface{}) error\n```\n\n```go\nfunc Is(err, target error) bool\n```\n\n```go\nfunc Join(errs ...error) error\n```\n\n```go\nfunc New(ctx context.Context, message string) error\n```\n\n```go\nfunc Unwrap(err error) error\n```\n\n```go\nfunc Wrap(ctx context.Context, err error, message string) error\n```\n\n```go\nfunc Wrapf(ctx context.Context, err error, format string, args ...interface{}) error\n```\n\n## Types\n\n```go\ntype DataError interface {\n\terror\n\tHasData\n\tHasCause\n}\n```\n\n```go\nfunc AddDataToError(err error, data map[string]any) DataError\n```\n\n```go\ntype ErrorList interface {\n\tAdd(err error)\n\tLen() int\n\tAsStringArray() []string\n}\n```\n\n```go\nfunc NewErrorList() ErrorList\n```\n\n```go\ntype HasCause interface {\n\tCause() error\n}\n```\n\n```go\ntype HasData interface {\n\tData() map[string]any\n}\n```\n\n","path":"github.com/bborbe/errors","name":"errors","synopsis":"","isRedistributable":true}
