Custom Errors

Welcome to tutorial no. 31 in our Golang tutorial series. In the last tutorial we learnt about error representation in Go and how to handle errors from the standard library. We also learnt how to extract more information from the errors. This tutorial deals with how to create our own custom errors which we can use in our functions and packages. We will also use the same techniques employed by the…