Avoid inaccurate tests: Use httptest when testing HTTP handlers

I wrote a post about Sets in Go. Probably the situation where I use the empty struct the most.

The progress so far on my non-trivial Go web app (open source)

Prevent sensitive data from leaking in Go/Golang

Fun with maps of functions

Composable HTTP Handlers using generics in Go

Played around with the routing wildcards in Go 1.22 and wrote this post

What is the difference between "telling time" and "measuring time"? I just published this post about time.Now() and the monotonic clock

Beginners sometimes compare time values using the comparison operators, this post explains why that's not a good idea

Have you ever had to change the default JSON time format? I wrote this post on different ways of marshaling/unmarshaling. Let me know what you think.

The docs for Go's time package jump straight into the deep end. I wrote this article as a (hopefully!) more approachable intro to Time and Location.

How to parse a time or date in Go

Explore the relationship between Arrays and Slices with this visualizer

Anonymous structs.. How and when do you use them?

Dealing with large structs in (table) tests

Someone on here asked “should I use slices of pointers” in response to my last post. So here is my view on it.

How (and when) to use make, literals and re-slicing. Beginner friendly post that discusses different ways to create slices.

Build your own slice: The append and copy functions