package main type Event struct { Name string Callback func(params ...interface{}) } type EventHandler struct { EventC <-chan *Event }