Go 1.19 added an <code>atomic.Pointer</code> type that's a generic type
One thing I really like about building libraries in Go is that you can create testable examples as a first-class citizen of the testing framework. This allows writing example code in the repository in a way that can make sure that expected use cases are always valid and do not br...
This release took a while, for all the good reasons: a ton of new features and bug fixes for your delight!
GoReleaser Pro v1.11+ added support to keeping a nightly release.
Everyone likes command line completions, so much that some even install extra tools just to have them.
Ok, so your radio lacks AirPlay support but has an auxiliary input and can be remote-controlled via the Frontier Silicon API. Fetch a Raspberry Pi, put Shairport-sync and Raspotify on it, plug it into the AUX port, and glue everything together with some Go code. Et voilà - home...
If you're working with Go projects that use Go modules, you may be aware of the format of the go.mod and go.sum, which are used to track dependencies and their checksums respectfully. For instance, if we take the following go.mod, you'll notice there are two sections for dependen...
If you're using Wiremock, sometimes you want to be able to quickly generate stub mappings from an existing server, rather than hand-crafting it yourself, to give you a like-for-like stub. I've written the following - somewhat hacky - script to produce a Wiremock stub mapping from...