What is the conventional Go error check after a function returns `err`?
Answer & explanation
Answer: if err != nil { return err }
Go represents errors as values; callers commonly compare the returned error with `nil`.
Practice errors with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: if err != nil { return err }
Go represents errors as values; callers commonly compare the returned error with `nil`.