This post discusses the issues with error propagation and API contracts in Go. It explores the concept of error domains and when it is appropriate to return errors from one function to another. The post provides different approaches for error handling and emphasizes the importance of understanding the context and documenting the error contract correctly.

9m read timeFrom matttproud.com
Post cover image
Table of contents
Go Error Propagation and API ContractsThe Problem #The Solution #Error Wrapping #Closing Words #

Sort: