ui: change events to have "Event" suffixed, not prefixed

Match the Go error naming convention (FooError).

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-21 17:08:34 +02:00
parent de5d5e19f5
commit 0b6dd4efd9
12 changed files with 64 additions and 64 deletions
+9 -9
View File
@@ -16,16 +16,16 @@ type HideInputOp struct{}
type Key interface{}
type Focus struct {
type FocusEvent struct {
Focus bool
}
type Chord struct {
type ChordEvent struct {
Name rune
Modifiers Modifiers
}
type Edit struct {
type EditEvent struct {
Text string
}
@@ -90,9 +90,9 @@ func (h HideInputOp) Add(o *ui.Ops) {
o.Write(data)
}
func (Edit) ImplementsEvent() {}
func (Chord) ImplementsEvent() {}
func (Focus) ImplementsEvent() {}
func (Edit) ImplementsInputEvent() {}
func (Chord) ImplementsInputEvent() {}
func (Focus) ImplementsInputEvent() {}
func (EditEvent) ImplementsEvent() {}
func (ChordEvent) ImplementsEvent() {}
func (FocusEvent) ImplementsEvent() {}
func (EditEvent) ImplementsInputEvent() {}
func (ChordEvent) ImplementsInputEvent() {}
func (FocusEvent) ImplementsInputEvent() {}