From the archive
Friday, 6 November
Folded from 14 sources that day.
Sorted by quality and by how many sources covered it, the same for everyone.
-
The Go team explains Go's new JSON API
With encoding/json/v2 and jsontext now stable, the Go team has published a refreshed guide and a migration guide. The guide covers running v1 and v2 side by side and logging differences.
-
The MustCreate Pattern for Go Tests
A single generic MustCreate test helper replaces a separate MustCreateX function per type, cutting boilerplate when tests build values from constructors that can fail.