WebAssembly: the common tongue of the Web, a Go approach

Today I’ll talk a little bit about frontend (don’t be mad 🥺🙏). First, I’ll briefly introduce what WebAssembly is, and then how it relates to Go. I’ll probably write more about this subject, but first I want to make this introduction to get everyone on the same page. The idea of this blog is not to post gigantic articles, but smaller ones every week (I’ll try my best 😉) that can talk to each other. ...

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. ...