Go

Notes on Go patterns and internals that came up during real work. Testing idioms, assembly-level debugging, caching with singleflight, and experiments with dynamic plugin loading.


Go Testing Patterns. The if got, want := idiom and table-driven tests.

Singleflight for a Go Cache Library. Deduplicating concurrent cache fills with sync/singleflight.

Go ASM R15 Clobbered in Plugin Buildmode. Debugging an assembly register clobber caused by -buildmode=plugin.

Experimenting with Goloader for Plugins. A JIT-style alternative to Go's plugin system.