Handling errors LIKE a 10x ENGINEER in Golang - Golang Service Pattern

Описание к видео Handling errors LIKE a 10x ENGINEER in Golang - Golang Service Pattern

In this video, I discuss handling errors when using the Service Pattern within Golang. Specifically, I talk about writing a generic service error package that can be used throughout your application to save from manually catching specific errors throughout your HTTP / gRPC / any other "adapter" your service may use.

This has personally saved me lots of pain with services that expose both an internet-facing HTTP endpoint and a gRPC internal method, saving me from having to write any code to convert errors to match the transport method.

Let me know what you think, and of course, let me know if you have any nice ideas on how you get around this problem in your Golang services.

Twitter:   / samvcodes  
Tiktok:   / samvcodes  

Комментарии

Информация по комментариям в разработке