Testing the Finished App Locally
Test the final app and see how practices like error handling and logging help us in debugging and correcting issues in the code.
We have come a long way since the beginning of this course. There is another thing we can do to make our app even more resilient.
Error handling
Error handling is the process of anticipating all the possible ways our code can fail, catching those errors, and then handling them in a way that doesn't crash the entire application. This process is very straightforward in Go. Instead of figuring out and catching the right kind of exception and nesting the relevant code in it, all we need to do is get the error object returned by a function.
Get hands-on with 1400+ tech skills courses.