Documentation ¶ Index ¶ type Key type List func NewList(total int) List type Map func NewMap(total int) Map type TraverseFn type Value Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Key ¶ type Key = interface{} type List ¶ type List interface { Size() int Put(key Key) (old Key) Traverse(func(key Key) bool) // from low to high TraverseR(func(key Key) bool) // from high to low Reset() } func NewList ¶ func NewList(total int) List type Map ¶ type Map interface { Get(key Key) (Value, bool) Put(key Key, value Value) Traverse(TraverseFn) Size() int } func NewMap ¶ func NewMap(total int) Map type TraverseFn ¶ type TraverseFn = func(key Key, value Value) bool type Value ¶ type Value = interface{} Source Files ¶ View all Source files base.go list.go map.go Click to show internal directories. Click to hide internal directories.