About 65 results
https://rednafi.com/go/typesafe-slogging/ · 9 May 2026
The default slog API is loose enough that a careless line ships broken JSON to production. Pin it down with Attr constructors, LogAttrs, a context-borne logger, and sloglint.
https://rednafi.com/go/hoist-wire-plumb/ · 2 May 2026
Four of the five steps in every unary RPC handler are wire plumbing. Pin the service function signature and they fit in one generic adapter per transport.
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/shards/2026/03/ideal-dispatch-mechanism/ · 31 Mar 2026
Switch, map of functions, and interface registry for dispatching in Go.
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.
https://rednafi.com/go/wrap-grpc-client/ · 15 Mar 2026
How to wrap a generated gRPC client behind a clean Go API so users never have to touch protobuf types or connection management directly.
https://rednafi.com/go/mutex-closure/ · 5 Mar 2026
Why your mutex wrapper should accept a closure for mutation instead of a plain value, with examples from the standard library and Tailscale.
https://rednafi.com/go/mocking-libraries-bleh/ · 23 Jan 2026
Practical patterns for mocking in Go without external libraries. Learn to mock functions, methods, interfaces, HTTP calls, and time using only the standard library
https://desertthunder.leaflet.pub/3maakvzgwxk27 · 18 Dec 2025 · 🦋 Bluesky
Dev Log 38: 2025-12-18