Event Driven in Go | 이벤트,설계


Event Driven in Go | 이벤트,설계

https://github.com/thoj/go-ircevent Event driven in Go tour.golang.org - concurrency producer Or consumer goroutine event-driven pattern : stack overflow The main function will not automatically wait for goroutines to finish. If there's nothing else to do in the main, then the program exits and you don't have your results. The global map that you use is not thread-safe. You need to synchronize access via a mutex, but there's a better way - use an output channel for results, which is already synchronized. mutex? You can use a for..range over a channel, and you can safely share a ..........



원문링크 : Event Driven in Go | 이벤트,설계