How do you represent a JSON field in Go that could be absent, `null` or have a value?

If you're a follower of my blog you'll know that just one of the Open Source projects I maintain is the oapi-codegen OpenAPI-to-Go code generator. Last year, we received a feature request to handle the case where a JSON field may be one of three states - unspecified, set to null,...

Interactive examples of Go 1.22 features

#​490 — January 9, 2024 Unsub  |  Web Version Go Weekly Rob Pike: 'What We Got Right, What We Got Wrong' — A written version (the script, really) of Rob’s GopherConAU talk given in November (▶️ 47-minute video here), where h...

Best Go books for 2024

What are the best Go books for 2024? Read my (relatively) unbiased recommendations for the Go books you should absolutely buy and read right now, whether you’re a beginner or expert Gopher.

Best Go books for 2024

What are the best Go books for 2024? Read my (relatively) unbiased recommendations for the Go books you should absolutely buy and read right now, whether you’re a beginner or expert Gopher.

Rate limiting via Nginx

I needed to integrate rate limiting into a relatively small service that complements a monolith I was working on. My initial thought was to apply it at the application layer, as it seemed to be the simplest route. Plus, I didn’t want to muck around with load balancer config...

Rate limiting via Nginx

I needed to integrate rate limiting into a relatively small service that complements a monolith I was working on. My initial thought was to apply it at the application layer, as it seemed to be the simplest route. Plus, I didn’t want to muck around with load balancer config...

'Unmaintained' (open source) code represents a huge amount of value

Being a good co-worker is your job now

In the final part of this series on the world of work, we’ll talk about how not to suck at meetings.

Being a good co-worker is your job now

In the final part of this series on the world of work, we’ll talk about how not to suck at meetings.

Summary of reading: October - December 2023

"Nomadland: Surviving America in the Twenty-First Century" by Jessica Bruder - describes the lives of the modern van-dwellers, mostly of older adults that travel around the country between seasonal jobs and live in their RVs or cars. Interesting book that tells a good...