errorx
A comprehensive error handling library for Go (by joomcode)
go-multierror
A Go (golang) package for representing a list of errors as a single error. (by hashicorp)
Our great sponsors
errorx | go-multierror | |
---|---|---|
2 | 16 | |
1,079 | 2,179 | |
2.0% | 1.4% | |
1.8 | 4.8 | |
10 months ago | 2 days ago | |
Go | Go | |
MIT License | Mozilla Public License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
errorx
Posts with mentions or reviews of errorx.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-28.
-
Prolog at work
(I highly recommend https://github.com/joomcode/errorx for dealing with errors in Golang. It proved its usefulness and convenience.)
- Error handling in Go HTTP applications
go-multierror
Posts with mentions or reviews of go-multierror.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-18.
-
In what ways are channels are better than the traditional await?
Some packages offer utilities to gather results from goroutines, such as multierror.Group or parallel.Map in samber/lo.
-
ResultGroup: Go lib for concurrent tasks & errors management
I've created a simple Go library for managing concurrent tasks, results, and errors. Inspired by HashiCorp's go-multierror, it simplifies running goroutines, collecting results, and error handling by minimizing boilerplate code.
-
Valgo is a type-safe, expressive, and extensible validator library for Golang.
This looks great and can be integrated into ORM. What about adopting go-multierror?
- Multiple error wrapping is coming in Go 1.20
- mdobak/go-xerrors: Yet another error handling library.
-
Multiple error handling in Go
Unlike errgroup, github.com/hashicorp/go-multierror cannot be interrupted by context. However, it is useful for use cases where you need to check all errors and handle them carefully, because you can keep all errors.
- A simple and easy-to-use batch error implementation.
- Better error handling in Golang: Theory and practical tips
-
SimpleFlow - Simplified generic workflows and concurrency patterns
I found that it was also useful to introduce https://github.com/hashicorp/go-multierror so if one or more single work items returns an error, we can also batch the errors as a single thing.
- If you absolutely must create a generic Optional…
What are some alternatives?
When comparing errorx and go-multierror you can also consider the following projects:
errors - Simple error handling primitives
multierr - Combine one or more Go errors together
gopsutil - psutil for golang
Miniflux - Minimalist and opinionated feed reader
go-chat-bot - IRC, Slack, Telegram and RocketChat bot written in go
go-commons-pool - a generic object pool for golang
conv - Fast conversions across various Go types with a simple API.
gosms - :mailbox_closed: Your own local SMS gateway in Go
werr
stats - :chart_with_upwards_trend: Monitors Go MemStats + System stats such as Memory, Swap and CPU and sends via UDP anywhere you want for logging etc...
health - An easy to use, extensible health check library for Go applications.