Concept Flow - Returning errors
Start function
Perform operation
Error occurred?
No→Return result, nil
Yes
Return zero value, error
Function ends
The function starts, does some work, checks if an error happened, and returns either the result with no error or a zero value with an error.
