Photo by David Pupaza on Unsplash

Handling errors in Go

Go has a unique stance on errors by treating them as values. There are no such constructs as exceptions in the language, although you may treat errors in this manner. Dealing with errors can sometimes feel cumbersome and verbose. However, in Go 1.13 the introduction of Wrapping and Unwrapping errors was added to the language. This extends errors to embed errors within themselves, creating a nest of errors that you can interact with....

June 18, 2023 ยท David Dymko