README ¶ #oc an iterable, ordered map of counters An implementation of a map that is sortable without copying. Uses a map of linked list nodes which is reordered based on the specified sort. Presents an iterable interface for traversal. DOCS LICENSE Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants type Oc func NewOc() *Oc func (o *Oc) Decrement(key string, val int) func (o *Oc) Delete(key string) func (o *Oc) Increment(key string, val int) func (o *Oc) KeyValue() (string, int) func (o *Oc) Len() int func (o *Oc) Next() bool func (o *Oc) SortByCt(dir order) func (o *Oc) SortByKey(dir order) Constants ¶ View Source const ( ASC order = 1 DESC order = -1 ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Oc ¶ type Oc struct { // contains filtered or unexported fields } func NewOc ¶ func NewOc() *Oc func (*Oc) Decrement ¶ func (o *Oc) Decrement(key string, val int) func (*Oc) Delete ¶ func (o *Oc) Delete(key string) func (*Oc) Increment ¶ func (o *Oc) Increment(key string, val int) func (*Oc) KeyValue ¶ func (o *Oc) KeyValue() (string, int) func (*Oc) Len ¶ func (o *Oc) Len() int func (*Oc) Next ¶ func (o *Oc) Next() bool func (*Oc) SortByCt ¶ func (o *Oc) SortByCt(dir order) func (*Oc) SortByKey ¶ func (o *Oc) SortByKey(dir order) Source Files ¶ View all Source files oc.go Click to show internal directories. Click to hide internal directories.