# Collect and handle multiple errors in Go

DevFeed: [Collect and handle multiple errors in Go](<https://devfeed.tech/articles/collect-and-handle-multiple-errors-in-go-35381.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/collect-and-handle-multiple-errors-in-go/>)

Author: Graham King

Published: 2020-05-22T17:33:53Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [error](<https://devfeed.tech/tags/error.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [go](<https://devfeed.tech/tags/go.md>), [software](<https://devfeed.tech/tags/software.md>)

## AI overview

A tutorial on collecting errors from multiple operations in Go and returning them together. It also explains checking whether any collected error matches a given error and discusses minimizing dependencies.

## Source excerpt

In Go, how do you run several operations that might return an error, and return those errors at the end? Here's how I do it.