Wrapping Errors in Go - How to Handle Nested Errors

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • errors

    Discontinued Simple error handling primitives

  • They should probably only mention them to say that they are not compatible with stdlib error wrapping and you should probably never use them in any new code. If you have to write new code that uses the stdlib wrapping and interacts with old code that uses github.com/pkg/errors then you'll probably need a wrapper for pkg/error wrapped errors so they can be inspected by the stdlib functions.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts