github.com/nuttech/bell/v2 (go): Package bell implements a simple event system (bell ringing and listening)  Several listeners can be added for each ringing (handlerFunc). Listeners are called in a separate goroutine through an established channel. When the bell rings, a message is sequentially transmitted to each listener.  If a channel is closed, the goroutine for that event is terminated.  Example for usage: Listen("event_name", func(message Message) { fmt.PrintLn(message) }) - add listener on bell by name "event_name" Ring("event_name", "some_data") - Ring on bell (call event "event_name")
Keywords: events|eventsystem|go|golang|hacktoberfest