Skip to content
ErrorGroup is an error type that can hold other errors together.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
errors.go
errors_test.go

README.md

GoDoc Codeship Codecov Go Report Card

Error Group

ErrorGroup is an error type that can hold other errors together.

Installation

go get -u github.com/txgruppi/errorgroup

Why?

Sometimes I have a loop running functions in parallel and because of the existing API of most the Go libs I need to return only one error.

I don't want to throw away such important information, so I group them together.

Tests

go get -u -t github.com/txgruppi/errorgroup-go
cd $GOPATH/src/github.com/txgruppi/errorgroup-go
go test ./...

License

MIT

You can’t perform that action at this time.