In this example we are going to run a goroutine which prints dots on the terminal every second. The important thing here is that, we are going to manually interact with it. We will start, pause, resume and terminate it. Although it works as expected, it can be improved and the possible improvements have been added to the code at the top but we are going to ignore it for now. This is just the bare minimum skeleton.
#go #golang