5 ms·
The Manning Book: "100 Go Mistakes and how to avoid them" gives solid examples of common gotchas with Go's error handling. I have seen the below occur again an
by lenkite 4y ago
The Manning Book: "100 Go Mistakes and how to avoid them" gives solid examples of common gotchas with Go's error handling.
I have seen the below occur again and again in Go. (no compiler help, so this can only be caught in reviews and not if the reviewer is tired).
#50: Checking an error type inaccurately
#51: Checking an error value inaccurately
#54: Not handling defer errors