# Error Handling in Go Programs

DevFeed: [Error Handling in Go Programs](<https://devfeed.tech/articles/error-handling-in-go-programs-29660.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/golang-error-handling/>)

Author: sasha@goteleport.com (Sasha Klizhentas)

Published: 2015-11-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

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

Tags: [code](<https://devfeed.tech/tags/code.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [errors](<https://devfeed.tech/tags/errors.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [logging](<https://devfeed.tech/tags/logging.md>), [programming](<https://devfeed.tech/tags/programming.md>), [troubleshooting](<https://devfeed.tech/tags/troubleshooting.md>)

## AI overview

This tutorial presents practical error-handling techniques for Go programs, including avoiding error shadowing, preserving original errors, logging appropriately, and recovering stack traces for production troubleshooting.

## Source excerpt

We discuss effective ways to handle errors in Go programming language.