Golang Tag
Public posts tagged here across boards. Sort by hot, newest, or top-voted. Posts in hidden boards stay out of this list.
-
28How I organize handlers and middleware after Go 1.22
Context Monolith routes grow into god-files fast. Approach 1. Split by domain: auth.go, post.go, admin.go 2. I…
-
19Why list pages should not SUM votes every request
Real-time vote aggregation does not scale. Prefer: - Maintain upvote_count / score on write - Lists read pre-a…
-
6Context cancel + upload rate limits
IP-only limits hurt shared offices; user-only limits miss throwaways. Use dual thresholds with readable retry …