News for hackers. Stuff that matters.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by ttymck on Sunday July 30, 2023 @12:13AM (#36927741)
Yeah because that's the error interface? It's literally a method that returns string.

Unfortunately, I guess after the fact they decided pattern matching was useful, so they did it via reflection (errors.As). But they don't warn you that errors.Is might return false for a true errors.As, it is certainly a mess, but the pedagogy could be improved.

There are no comments on this comment yet.