-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add snippets #3
Comments
Yonk, I'll be taking that from you :P Probably make a note that, that snippet only works in vscode? |
This is outdated now, errctx doesn't exist! |
Updated! |
Also, keep in mind if you're always using a specific set of decorators, you can easily build a helper: func WrapWithDefaults(err error, ctx context.Context, message string) error {
return fault.Wrap(err, fctx.With(ctx), fmsg.With(message))
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once API is v1, provide some snippets since I write errctx wrapping constantly:
The text was updated successfully, but these errors were encountered: