Interfaces, Testing and Mocking in Go

Published at December 3, 2024 | Tagged with: ,

Interfaces are abstraction types that define a set of methods and their signatures without providing any implementation — think of them as a contract your module should follow. In this screencast, I show how to use them in Go to create decoupled modules that are easy to test, refactor, and extend.

The code is available on GitHub.

How to use Generics in Go

Published at November 11, 2024 | Tagged with: ,

Several years after their release, Generics in Go are still a bit misunderstood and avoided by many developers. In this screencast, I show how to use them and how they can help you write better code.

The code is available on GitHub.

If you are interested in how generics work under the hood, check out this talk from FOSDEM 2025.