diff --git a/event/lifecycle/lifecycle.go b/event/lifecycle/lifecycle.go index b25ca68..bed3b49 100644 --- a/event/lifecycle/lifecycle.go +++ b/event/lifecycle/lifecycle.go @@ -54,6 +54,10 @@ type Event struct { DrawContext interface{} } +func (e Event) String() string { + return fmt.Sprintf("lifecycle.Event{From:%v, To:%v, DrawContext:%v}", e.From, e.To, e.DrawContext) +} + // Crosses returns whether the transition from From to To crosses the stage s: // - It returns CrossOn if it does, and the lifecycle change is positive. // - It returns CrossOff if it does, and the lifecycle change is negative.