goroutine
Go Concurrency Patterns
Goのgoroutine, channelをちょっと攻略! #Go - Qiita
Go言語
におけるメモリ使用量の非常に少ないスレッド
チャンネル
を用いて通信する
https://go.dev/doc/faq#What_operations_are_atomic_What_about_mutexes
Do not communicate by sharing memory. Instead, share memory by communicating.
メモリを共有して通信しないでください。代わりに、通信してメモリを共有します。