Common anti-patterns in Go
/ 1 min read
I wrote this article for DeepSource as a practical checklist of Go anti-patterns that are easy to miss in day-to-day code review.
It covers small but meaningful issues like exported functions returning unexported types, unnecessary blank identifiers, redundant make arguments, useless return and break statements, overcomplicated function literals, single-case select statements, and context.Context argument placement.
Read the original article on DeepSource: