oc

package module
v0.0.0-...-5e2dafc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2015 License: MIT Imports: 2 Imported by: 0

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

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL