About 99 results
https://rednafi.com/shards/2026/04/go-uuid/ · 19 Apr 2026
Notes on Go's newly accepted uuid proposal and the tradeoffs behind the API.
https://rednafi.com/go/struct-tags/ · 18 Apr 2026
A quick tour of Go struct tags: how different libraries use them, how you read them at runtime with reflection, and how other tools read them at build time instead.
https://rednafi.com/go/error-translation/ · 12 Apr 2026
Translating errors at layer boundaries so storage details don't leak into the handler or, worse, into client responses.
https://rednafi.com/shards/2026/04/no-stacked-loglines/ · 7 Apr 2026
Why logging at every layer of a service produces noise, and how to log only at the handler level while propagating context from below.
https://rednafi.com/shards/2026/03/ideal-dispatch-mechanism/ · 31 Mar 2026
Switch, map of functions, and interface registry for dispatching in Go.
https://rednafi.com/go/testing-unary-grpc-services/ · 23 Mar 2026
How to test unary gRPC services in Go - handler logic, interceptors, deadlines, metadata propagation, and rich error details - all in-memory with bufconn.
https://rednafi.com/go/repo-txn-uow/ · 21 Mar 2026
Decoupling business logic from storage in Go, adding transaction support without leaking SQL details, and coordinating atomic writes across multiple repositories using a unit of work.
https://rednafi.com/shards/2026/03/transactions-with-repository-pattern/ · 20 Mar 2026
Adding transaction support to a repository interface without leaking storage details.
https://rednafi.com/shards/2026/03/user-id-through-context/ · 18 Mar 2026
Why the middleware-to-handler boundary is a special case for context values.
https://rednafi.com/shards/2026/03/what-belongs-in-go-context-values/ · 17 Mar 2026
A simple litmus test for when to use context values in Go.