Go Practice: Error Handling
11mAdvanced2023-10-10
Authors

Ademusoyo Awosika-Olumo
Technical Leader, Content Marketing Consultant, Public Speaker
Course details
Effective error handling is one of the most important skills you can have to ensure that your server doesn’t completely crash if something goes wrong. Errors in Go can be handled in many different ways depending on the situation, and in this course, Ademusoyo Awosika-Olumo provides hands-on challenges that focus on common errors you might encounter in Go. Learn how to handle error wrapping, write custom error types, log errors that occur within a function, use the recover function to catch a panic error, and more.
Skills covered
GoGoogleProgramming LanguagesSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Error handling in Go
- 02 - Intro to CoderPad
1. Error Handling
- 03 - Solution - Error wrapping
- 04 - Solution - Custom error types
- 05 - Solution - Error logging
- 06 - Solution - Error handling in goroutines
- 07 - Solution - Panic and recover
Conclusion
- 08 - Next steps