AI times three—or how I made AI write a blog post for me

Writing a concurrency-safe hashmap in Go is dead easy, even an AI can do it! To prove this, I had three AI tools write this blog article, generate Go code, and create an opening image.

Are robots coming to fix your Go code?

#​439 — December 2, 2022 Unsub  |  Web Version The Go Weekly Newsletter The Best Go Framework.. No Framework? — Many languages have default (or, at least, obvious) frameworks that can help your project get off the ground quickly an...

Comparing Go error values

Usually what matters about an error is that it’s not nil, but what if we want to know whether it’s some specific error value? For example, in a test? Let’s look at some of the right and wrong ways to do that.

Building a code search index in Go

#​438 — November 25, 2022 Unsub  |  Web Version The Go Weekly Newsletter ▶  Fuzz Testing Made Easy — At GopherCon 2022, former Go core team member Katie Hockman presented a neat, accessible intro to fuzz testing starting from t...

🎧 Replay: 2022

This is a different kind of post: I’m sharing some music I enjoyed this year! If that’s not your thing, you don’t need to go any further. Best albums of 2022 Those are the albums I listened to (and incidentally liked) the most in 2022. Avantasia – A Paranormal...

Floating point NaNs as map keys in Go give you weird results

SSH port forwarding with Go

This post shows how to set up SSH port forwarding ("tunnels") - both local and remote - using the extended Go standard library. Setup While you could set up localhost forwarding for testing, to discuss a more realistic scenario I would recommend spinning up a basic VPS...

Go 1.21 may have a <code>clear(x)</code> builtin and there's an interesting reason why

Google's got a Go style guide

#​437 — November 18, 2022 Unsub  |  Web Version The Go Weekly Newsletter Making a Go Program 70% Faster with a One Character Change — How can you resist a title like that? This is the tale of tracking down a ‘silly mistake’ th...

Announcing GoReleaser v1.13 — the November release

Another month, another release! Like the previous 2 releases, this is a beefy one: over 100 commits from 15 contributors! GoReleaser on Mastocon This one also marks the point of 1 year since our first v1! Highlights docker, docker buildx and podman (on GoReleaser Pro) will now us...