Back to Developer Roadmap

Sentinel Errors

src/data/roadmaps/golang/content/[email protected]

4.0530 B
Original Source

Sentinel Errors

Predefined error values representing specific conditions, defined as package-level variables. Check using errors.Is() or direct comparison. Examples: io.EOF. Enable predictable APIs where callers handle specific errors differently.

Visit the following resources to learn more: