Tagged articles
4 articles
Page 1 of 1
Ops Development & AI Practice
Ops Development & AI Practice
Apr 22, 2024 · Fundamentals

Mastering Go 1.13 Error Handling: Unwrap, Is, As, and %w

Go 1.13 introduced new error‑handling utilities—Unwrap methods, errors.Is and errors.As functions, and the %w formatting verb—allowing developers to wrap, inspect, and propagate underlying errors more effectively, with examples illustrating legacy patterns, custom error types, and best‑practice decisions on when to wrap.

error-handlingerrors-packageerrors.as
0 likes · 13 min read
Mastering Go 1.13 Error Handling: Unwrap, Is, As, and %w
System Architect Go
System Architect Go
Oct 18, 2019 · Backend Development

Error Handling in Go Before and After Go 1.13

This article explains Go's built‑in error interface, the traditional ways of creating and checking errors before Go 1.13, and the new errors.Unwrap, errors.Is, errors.As functions plus the %w verb in fmt.Errorf introduced in Go 1.13 for error wrapping and inspection.

Error HandlingGoas
0 likes · 5 min read
Error Handling in Go Before and After Go 1.13