File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66//
77// This package is based on well known github.com/pkg/errors. Key differences and features:
88//
9- // - errors.New() is an alias to standard library and (it does not add a stack trace) and
10- // should be used to create sentinel package-level errors;
11- // - minimalistic API: few methods to wrap an error: errors.Errorf(), errors.Wrap();
12- // - adds stack trace idempotently (only once in a chain);
13- // - options to skip caller in a stack trace and to add error fields for structured logging;
14- // - error fields are made for the statically typed logger interface;
15- // - package errors can be easily marshaled into JSON with all fields in a chain.
9+ // - errors.New() is an alias to standard library and (it does not add a stack trace) and
10+ // should be used to create sentinel package-level errors;
11+ // - minimalistic API: few methods to wrap an error: errors.Errorf(), errors.Wrap();
12+ // - adds stack trace idempotently (only once in a chain);
13+ // - options to skip caller in a stack trace and to add error fields for structured logging;
14+ // - error fields are made for the statically typed logger interface;
15+ // - package errors can be easily marshaled into JSON with all fields in a chain.
1616package errors
1717
1818import (
You can’t perform that action at this time.
0 commit comments