Multiple error wrapping is coming in Go 1.20

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

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • go

    The Go programming language

    The proposed implementation is almost exactly as you described. https://github.com/golang/go/blob/0fd7be7ee5f36215b5d6b8f23f35d60bf749805a/src/errors/join.go

  • go-multierror

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

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • multierr

    Combine one or more Go errors together

    The only remaining use-case I see here looks like https://github.com/uber-go/multierr , maybe useful in concurrent scenarios. But on my side this is rather anecdotical, and anyway already addressed by a well documented and tested third party.

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