Return multiple dependent errors in Go?

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
  • multierr

    Combine one or more Go errors together

  • There are a few libraries that solve this problem. One is https://github.com/uber-go/multierr , another https://github.com/hashicorp/go-multierror . They have similar APIs and are pretty easy to use. If you don't want to import another library, it's pretty easy to do something similar yourself, inspired by them. 😊

  • go-multierror

    A Go (golang) package for representing a list of errors as a single error.

  • There are a few libraries that solve this problem. One is https://github.com/uber-go/multierr , another https://github.com/hashicorp/go-multierror . They have similar APIs and are pretty easy to use. If you don't want to import another library, it's pretty easy to do something similar yourself, inspired by them. 😊

  • 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