Skip to content

Commit

Permalink
Merge pull request #4 from vansante/fmt
Browse files Browse the repository at this point in the history
Run goformat on project
  • Loading branch information
vansante authored Dec 17, 2018
2 parents c88c7bb + d040e0e commit cd27bc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ type EventType string

// HandleFunc is a handler function for a given event type
type HandleFunc func(arguments ...interface{})

// Listener is a container struct used to remove the listener
type Listener struct {
handler HandleFunc
}

// CaptureFunc is a capturer function that can capture all emitted events
type CaptureFunc func(event EventType, arguments ...interface{})

// Capturer is a container struct used to remove the capturer
type Capturer struct {
handler CaptureFunc
Expand All @@ -33,4 +35,4 @@ type Observable interface {
type EventEmitter interface {
// EmitEvent emits the given event to all listeners and capturers
EmitEvent(event EventType, arguments ...interface{})
}
}

0 comments on commit cd27bc5

Please sign in to comment.