11 lines
143 B
Go
11 lines
143 B
Go
|
package main
|
||
|
|
||
|
type Event struct {
|
||
|
Name string
|
||
|
Callback func(params ...interface{})
|
||
|
}
|
||
|
|
||
|
type EventHandler struct {
|
||
|
EventC <-chan *Event
|
||
|
}
|