Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "1.4.1"
Version is the current version of the package.
Functions ¶
This section is empty.
Types ¶
type EventEmitter ¶
type EventEmitter interface { On(event string, handler Handler) Once(event string, handler Handler) Off(event string, handler Handler) Emit(event string, payload any) }
EventEmitter is a simple event emitter.
type Handler ¶ added in v1.2.5
Handler is a function that can be registered to an event.
func HandleFunc ¶
HandleFunc creates a Handle from a function.
Click to show internal directories.
Click to hide internal directories.