chapter seven
This chapter covers
- Using generics in Go
- Not using generics when they aren’t needed
- Creating type constraints
- Goroutines, parallelism, and concurrency
- Race conditions
- Adding mutexes
- Learning some Go proverbs
Think back to your school days. Did you ever suddenly remember you had a homework assignment due the next day that you hadn’t even started? Maybe you phoned a friend and asked if they had the answer to question 2.b, just to get you a head start and allow you to spend more time on some other part of the homework. Teachers frowned on this kind of thing, of course.