Replies: 1 comment 3 replies
-
errors.Errorf() allows for a generic msg plus custom values. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The errors package has been "archived" (pkg/errors#245). errors.Wrapf() is supposed to be replaced by fmt.Errorf("%w"). However, (1) %w output is not liked by some, and more importantly (2) fmt.Errorf does not yet support a way to add a stack trace, which was the original reason for requiring errors.Errorf() in the stacker package.
What should be the official guidance right now? Should we continue recommending/requiring the errors package, or switch?
Beta Was this translation helpful? Give feedback.
All reactions