Commit c5ece1d0 authored by Louis Thibault's avatar Louis Thibault Committed by vyzo

Add String() method to Topic.

parent 769831b4
......@@ -26,6 +26,11 @@ type Topic struct {
closed bool
}
// String returns the topic associated with t
func (t *Topic) String() string {
return t.topic
}
// EventHandler creates a handle for topic specific events
// Multiple event handlers may be created and will operate independently of each other
func (t *Topic) EventHandler(opts ...TopicEventHandlerOpt) (*TopicEventHandler, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment