Mago’s Blog

👋 My name is Alexandre Cabral, a.k.a. Mago. I’m a Software Engineer from Brazil 🇧🇷 and a Go GDE

  • This blog does not use AI to generate content

  • All thoughts are my own and reflect the moment in time when they were written

  • Feel free to reach out and share your opinions on the posts! Have fun 😊

Concurrent code testing with synctest bubbles in Go

Have you ever got confused about testing functions using time.Now()? What about functions calling goroutines? Well your problems are over… or they will be over with Go 1.25, that will be released soon (probably next month) featuring the new testing/synctest package What does synctest do? Basically, it allows you to run your tests in a “bubble”, a kind of isolation from the rest of the test. It’s meant to make your life easier when testing concurrent code, avoiding flaky tests, changing your production code to be testable, and reducing the time to run tests. ...

Should I Stay or Should I Go?

Let’s talk about why Go is so interesting and why I love it! It took me some time to choose the title of the post. I wanted to play with a song name; the first one that came to my mind was “Should I Stay or Should I Go?” by The Clash, a classic. But then my curiosity made me search for other songs with the word “go.” And there are a lot. ...

July 4, 2025 · 12 min · 2495 words · Mago
Go ·  Opinion