Golang Request Validation ERROR HANDLING like a 10x ENGINEER!?

Опубликовано: 31 Октябрь 2024
на канале: samvcodes
4,849
138

In this video, I talk about a nice way to handle your request validation errors in your Golang API. I demonstrate the use of an errors package which allows you to build up a map of errors so that you can build up a nice list of errors, rather than returning a single error at the first point of failure.

Handling request validation in Golang in this way allows a nicer experience for consumers of your API or, for your UI.

Let me know what you think of this idea of handling errors, and also leave a comment if you have any ideas yourself!

Real Golang Go Routine use cases:    • A REAL usecase of Golang Go Routines!...  

Quick note, massive thank you to everyone for over 1000 subscribers on the channel!

Code in this video: https://github.com/samverrall/request...

Twitter:   / samvcodes