Create an Error package and have some pre-defined errors
For example: GofrError, DBError, PubSubError etc.
pkg/errors package has Wrap and WithStack which can be used to provide more contexts.
Can you assign this issue to me? @vikash
Sure @MadhushaPrasad assigning the issue to you. Please discuss how the user's will be using these errors (just the raw approach ) before submitting the PR.
Wrap and WithStack
can you give me some more details about this Wrap and WithStack? @vikash
Wrap and WithStack
can you give me some more details about this Wrap and WithStack? @vikash
@MadhushaPrasad you can refer here : https://github.com/pkg/errors?tab=readme-ov-file#adding-context-to-an-error
To see what is errors.Wrap.
I also found this repository for go-errors: https://github.com/go-errors/errors
Wrap and WithStack
can you give me some more details about this Wrap and WithStack? @vikash
@MadhushaPrasad you can refer here : https://github.com/pkg/errors?tab=readme-ov-file#adding-context-to-an-error To see what is
errors.Wrap.I also found this repository for go-errors: https://github.com/go-errors/errors
ok thank you
@MadhushaPrasad Hey! Did we came to any raw implementation on how the users will be using our errors package?