go: basic implementation of semaphore Publikováno 10.12.201910.12.2019 , autor: Pepa Channels are ideal data structure for sync between goroutines: