Tag

pkg/errors

0 views collected around this technical thread.

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.

Goerror handlingerrors
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.

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