Tag

sentinel error

1 views collected around this technical thread.

Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 23, 2022 · Backend Development

Go Error Handling Practices in ZuanZuan Operations: Usage and Management

This article explains how ZuanZuan's operations team applies Go's error handling mechanisms—including error values, panic/recover, sentinel errors, and custom error types—along with practical guidelines and code examples to improve reliability and maintainability of production services.

Gobackend developmenterror handling
0 likes · 13 min read
Go Error Handling Practices in ZuanZuan Operations: Usage and Management
政采云技术
政采云技术
Dec 2, 2021 · Backend Development

Understanding Go's Error Handling: Design, Best Practices, and Common Pitfalls

This article explains the design of Go's error type, why errors are returned as pointers, compares error handling across languages, discusses panic, wild goroutines, sentinel and custom errors, and presents practical guidelines such as processing errors once, eliminating redundant checks, and wrapping errors for richer context.

Gobackendbest practices
0 likes · 13 min read
Understanding Go's Error Handling: Design, Best Practices, and Common Pitfalls