Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendToChannel ¶
func SendToChannel(f func() interface{}) <-chan interface{}
Types ¶
type Set ¶
type Set interface { // Adds an element to the set. Returns whether // the item was added. Add(item interface{}) bool // Pop returns an item from the set Pop() interface{} // Size returns the number of items in the set Size() int }
Set is the interface of the common set storage pattern
func NewCapacitySet ¶
NewCapacitySet returns the set interface with max capacity allowing of a set with cap
Click to show internal directories.
Click to hide internal directories.