Lifecycle management in Go tests

Unlike pytest or JUnit, Go’s standard testing framework doesn’t give you as many knobs for tuning the lifecycle of your tests. By lifecycle I mean the usual setup and teardown hooks or fixtures that are common in other languages. I think this is a good thing because y...

Lifecycle management in Go tests

Master Go test lifecycle with t.Cleanup(), subtests, and TestMain. Learn per-test, grouped, and package-wide setup patterns effectively.

Elephants for breakfast: testing the untestable in Rust

How do you test functions that can’t be tested? That’s easy: you don’t! Instead, you use the magic function technique to break down the elephants—excuse me, functions—into smaller bites that you can test.

You can only customize GNU Emacs so far due to primitives

Implementing Forth in Go and C

I first ran into Forth about 20 years ago when reading a book about designing embedded hardware. The reason I got the book back then was to actually learn more about the HW aspects, so having skimmed the Forth chapter I just registered an "oh, this is neat" mental note...

Go experiments with SIMD

#​567 — August 27, 2025 Read the Web Version Go Weekly Container-Aware GOMAXPROCS — The official Go blog kicks off a promised series of posts on Go 1.25’s new features with a look at some tweaked container-aware behavior around GOM...

Garbage Collection In Go : Part III - GC Pacing

Go’s garbage collector is designed not only to manage memory safely but also to pace itself intelligently, striking a balance between low latency and high throughput. This blogpost explores how the GC adapts its pace to workload demands, demonstrated through both sequential and...

Testing Time (and other asynchronicities)

A discussion of testing asynchronous code and an exploration of the `testing/synctest` package. Based on the GopherCon Europe 2025 talk with the same title.

The one with the big Go 1.25 release

#​566 — August 20, 2025 Read the Web Version ☀️ We're back from a week off – the previous issue is here if you want to check it out again – and we should now be back every week until October at least :-)__Peter Cooper, your editor Go Wee...

Container-aware GOMAXPROCS

New GOMAXPROCS defaults in Go 1.25 improve behavior in containers.