Versions in this module Expand all Collapse all v0 v0.4.0 Aug 26, 2014 Changes in this version + type Cmp func(a, b int64) int + type Enumerator struct + func (e *Enumerator) Close() + func (e *Enumerator) Next() (k int64, v struct{}, err error) + func (e *Enumerator) Prev() (k int64, v struct{}, err error) + type Tree struct + func TreeNew(cmp Cmp) *Tree + func (t *Tree) Clear() + func (t *Tree) Close() + func (t *Tree) Delete(k int64) (ok bool) + func (t *Tree) First() (k int64, v struct{}) + func (t *Tree) Get(k int64) (v struct{}, ok bool) + func (t *Tree) Last() (k int64, v struct{}) + func (t *Tree) Len() int + func (t *Tree) Put(k int64, upd func(oldV struct{}, exists bool) (newV struct{}, write bool)) (oldV struct{}, written bool) + func (t *Tree) Seek(k int64) (e *Enumerator, ok bool) + func (t *Tree) SeekFirst() (e *Enumerator, err error) + func (t *Tree) SeekLast() (e *Enumerator, err error) + func (t *Tree) Set(k int64, v struct{})