Search Results

21 results

Type-safe slogging | Redowan's Reflections

09 May 2026

https://rednafi.com/go/typesafe-slogging/

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.

Accepted proposal: grow an existing map with maps.Grow | Redowan's Reflections

03 Nov 2026

https://rednafi.com/shards/2026/11/go-maps-grow/

The maps package is getting a Grow function that presizes a map you already have, and maps.Copy will start doing it for you.

Partial updates with field masks | Redowan's Reflections

12 Oct 2026

https://rednafi.com/go/patch-field-mask/

Keep the value and the update intent in separate fields of a PATCH request.

Accepted proposal: range over all command-line flags | Redowan's Reflections

30 Jul 2026

https://rednafi.com/shards/2026/07/go-flag-all-is-set/

The flag package is getting a range-friendly iterator and a direct way to tell whether a flag was set successfully.

Accepted proposal: Go examples with any signature | Redowan's Reflections

28 Jul 2026

https://rednafi.com/shards/2026/07/go-example-any-signature/

Go examples with parameters or results can appear in documentation without becoming tests.

Supervised fire-and-forget in Go | Redowan's Reflections

25 Jul 2026

https://rednafi.com/go/supervised-fire-and-forget/

A bounded worker pool for small background tasks, with task-owned contexts, panic recovery, and graceful shutdown.

GC shape stenciling in Go generics | Redowan's Reflections

11 Jul 2026

https://rednafi.com/go/gc-shape-stenciling/

How Go's compiler shares generic function bodies by GC shape and uses dictionaries for the concrete types.

Modernizers & go fix | Redowan's Reflections

04 Jul 2026

https://rednafi.com/go/gofix/

Go 1.26 rebuilt go fix on the analysis framework. It modernizes your code and respects the Go version your module declares. The post covers the modernizers, the bigger x/tools suite, and what //go:fix inline can and can't migrate.

Request coalescing with Go singleflight | Redowan's Reflections

27 Jun 2026

https://rednafi.com/go/request-coalescing/

A hot cache key expires and a hundred requests issue the same query at once, saturating the database. Go's singleflight package coalesces those duplicate calls into one. How to wire it up, how to measure whether it's firing, and why per-pod coalescing is usually enough.

Channel iteration and goroutine leak | Redowan's Reflections

21 Jun 2026

https://rednafi.com/go/channel-iteration-goroutine-leak/

A for-range over a channel that's never closed leaks the receiver. Why a fixed number of receives is safe, why a range isn't, and how to catch it with Go 1.27's leak profile.

Filters
Category
Domain
In web feed
Language