Errors are values, and there is no catch
Go returns errors instead of throwing them, which changes control flow, function signatures and code review. This lesson covers the error interface, the sentinel pattern, the message conventions, and why no error syntax is coming.
10 min readfoundation
Sign in to read this lesson
This lesson is part of Types, errors and resources, which a free account opens. The orientation module of every course reads without one.
An account is free. There is no paid plan, no tier and nothing to buy.