So rely on the programmer countering their laziness instead of having these things the default in the language also known as exceptions?
Re:Thirteen Years of Go
by flippinburgers on Saturday November 12, 2022 @02:44AM
(#33571002)
Exceptions are a nightmare.
1. Immediately when the error occurs, send it to logging with all required data to find the exact point of failure + data to understand the "why".
2. Send the error up the stack.
If you do these two things, your systems written in golang will be resilient.