func (set *ListenerSet) Empty() bool {
    return len(set.listeners) == 0
}
Checks if the ListenerSet is empty.
package gobus
import "reflect"
func (set *ListenerSet) Add(listener interface{}) IListenerSet {
    if _, ok := set.hasListener(listener); !ok {
        set.listeners = append(set.listeners, listener)
    }
    return set
}
func (set *ListenerSet) Remove(listener interface{}) IListenerSet {
    if i, ok := set.hasListener(listener); ok {
        set.listeners = append(set.listeners[:i], set.listeners[i+1:]...)
    }
    return set
}
func (set *ListenerSet) Values() []interface{} {
    return set.listeners
}