Part 1 , Part 2 , Part 3 , Part 4 , Part 5

Goroutines can be used to start independent long running task. These tasks can be entire microservices, which is very useful for creating a single application with multiple system responsibilities. The select statement will block and wait for a channel to be ready for reading, then after reading from the channel the code will be executed.

Playground: https://go.dev/play/p/8JwQDgNrHJY

part 5