Back to Browse

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

7.9K views
Oct 28, 2023
6:13

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: https://youtu.be/iv5aRdslb5k?si=Qjo0tgsOlflQjWir Quick note, massive thank you to everyone for over 1000 subscribers on the channel! Code in this video: https://github.com/samverrall/request-validation-errors-example Twitter: https://twitter.com/samvcodes

Download

0 formats

No download links available.

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