omap

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVPair

type KVPair struct {
	Key   interface{}
	Value interface{}
}

KVPair represents tuple

func (*KVPair) Compare

func (k *KVPair) Compare(kv2 *KVPair) bool

Compare current key to another

func (*KVPair) String

func (k *KVPair) String() string

String representations of the key pair

type Map

type Map interface {
	Set(key interface{}, value interface{})
	Get(key interface{}) (interface{}, bool)
	Delete(key interface{})
	Iterator() func() (*KVPair, bool)
	Len() int
}

Map object

func New

func New() Map

New map object

Jump to

Keyboard shortcuts

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