Tagged articles

error wrapping

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.

Best PracticesError handlingGo
0 likes · 14 min read
Mastering Go Error Handling: From Basics to Advanced Patterns
Golang Shines
Golang Shines
Apr 16, 2026 · Backend Development

Go Error Handling Best Practices: From Basics to Advanced

The article explains why proper error handling is crucial for reliable Go programs, describes Go's explicit error return model, demonstrates basic techniques, introduces custom error types, error wrapping and chaining introduced in Go 1.13, outlines best‑practice guidelines, and reviews popular libraries and centralised patterns.

Best PracticesError handlingGo
0 likes · 12 min read
Go Error Handling Best Practices: From Basics to Advanced
Tencent Cloud Developer
Tencent Cloud Developer
May 9, 2022 · Backend Development

Error Handling and ErrGroup Patterns in Go

The article explains Go’s built‑in error interface, distinguishes errors, exceptions and panics, presents three handling patterns—classic returns, stateful objects, and functional deferred execution—shows how to wrap errors for context, and demonstrates using the errgroup concurrency primitive (including an extended version) for safe parallel processing.

Backend DevelopmentErrGroupError handling
0 likes · 15 min read
Error Handling and ErrGroup Patterns in Go