Buy Me a Coffee
Illustration of efficient concurrency testing with Go using synctest

[Golang] Mastering Concurrency Testing with `synctest` package

Introduction Testing concurrent code in Go can be challenging, especially when dealing with timing issues. One common problem is ensuring goroutines, Go’s lightweight threads, have finished their tasks. Traditional techniques often incorporate time.Sleep, but this can slow down tests or make them unreliable. Fortunately, Go 1.25 introduced the testing/synctest package into the standard library (after first being available experimentally in Go 1.24). It helps tackle these issues by providing a deterministic way to test concurrent code without the usual timing trade-offs. ...

[Docker] Configure Custom TLS Certificates for Docker API Using Docker-in-Docker

Hey there! Have you ever wanted to configure custom TLS certificates for Docker API, but didn’t want to mess up your local Docker environment before you’re sure everything is working smoothly? Well, fear not! I’ve got a secret recipe for you that involves using Docker-in-Docker (DinD) to run a temporary Docker container with custom TLS certificates mounted. ⚡ Generate instantly: OneClickTLS.com - create self-signed TLS/mTLS certificates in seconds, directly in your browser. No uploads, no storage, and no setup needed - just instant generation. If it saves you time, you can ☕ Buy me a coffee to support future tools like this. To get started, let’s say you already have your custom TLS certificates ready in the path `/tmp/certs``. You can run the following command to start a temporary Docker container with custom TLS certificates mounted: ...

DigitalOcean Referral Badge
Sign up to get $200, 60-day account credit !