News for hackers. Stuff that matters.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by adrianmsmith on Sunday July 30, 2023 @04:06AM (#36928965)
> Putting error nil checks into a function is an anti-pattern in Go.

What should you do instead?

Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by Smaug123 on Sunday July 30, 2023 @04:08AM (#36928978)
You may have misread this. The OP means "extracting error nil checks into a function is an anti-pattern", not "your functions should not contain error handling".
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by adrianmsmith on Sunday July 30, 2023 @05:09AM (#36929319)
I see, that makes more sense, thanks :)