hashmap

package
v0.0.0-...-da13845 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Get(k interface{}) (interface{}, error)
	Put(k, v interface{})
	Remove(keys ...interface{})
	Has(keys ...interface{}) bool
	HasValue(values ...interface{}) bool
	KeyOf(value interface{}) (interface{}, error)
	Each(func(k, v interface{}) bool)

	Len() int
	Clear()
	IsEmpty() bool
	IsEqual(Interface) bool

	String() string
	Keys() []interface{}
	Values() []interface{}
	Map() map[interface{}]interface{}
	Copy() Interface
}

Interface describes functions a Map must expose

func New

func New(pairs ...interface{}) Interface

New creates a new hashmap

func NewSync

func NewSync(pairs ...interface{}) Interface

NewSync creates a new thread safe hashmap

Jump to

Keyboard shortcuts

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