July 22, 2020
typedmemmove, or Debugging a Goroutine to Death
One of the most common bugs that you may encounter in go are race conditions. This is often the case when working with goroutines and non-atomic data types. Plenty of articles have covered goroutine race conditions, but why don’t we take another look and, this time, debug a couple race conditions to death by looking at what happens under the hood?
Let’s take a look at a typical example. We will examine what happens when we dereference a method receiver and assign it an object that we later modify.
Read more