Handling concurrency is hard, even if it was made simple.
The Go 1.19 Atomic Wrappers and why to use them explores the sync/atomic package which was introduced in Go 1.19 and use cases for it.
I haven't used this one personally, but we have sync.Map in one of the projects to get the results from goroutines in one place.
#go #programming