Tagged articles
3 articles
Page 1 of 1
Go Development Architecture Practice
Go Development Architecture Practice
Apr 20, 2026 · Backend Development

Mastering Go Error Handling: From Basics to Advanced Patterns

This article explains why error handling is crucial in Go, demonstrates the language's explicit error model, walks through basic error representation, return and checking, introduces custom error types, error wrapping, error chains, best‑practice guidelines, and centralised handling patterns with concrete code examples.

Error HandlingGobest practices
0 likes · 14 min read
Mastering Go Error Handling: From Basics to Advanced Patterns
Go Programming World
Go Programming World
Sep 15, 2024 · Fundamentals

Deep Dive into Go's pkg/errors Package: Design, Implementation, and Usage

This article explains Go's error‑handling shortcomings, introduces the popular third‑party pkg/errors library, demonstrates how to wrap errors with additional context and stack traces, and provides a detailed line‑by‑line walkthrough of its source files (errors.go, go113.go, stack.go) to reveal the underlying design and implementation.

error-handlingerrorsgo13
0 likes · 25 min read
Deep Dive into Go's pkg/errors Package: Design, Implementation, and Usage
High Availability Architecture
High Availability Architecture
May 13, 2022 · Backend Development

Error Handling and Errgroup Usage in Go

This article explains Go's built-in error interface, distinguishes errors from exceptions, compares three common error-handling patterns, discusses wrapping errors with packages like pkg/errors, and demonstrates centralized error handling using errgroup, including usage examples and best-practice recommendations for backend Go development.

BackendError HandlingGo
0 likes · 17 min read
Error Handling and Errgroup Usage in Go