hashmap

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 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 HashMap

type HashMap struct {
	// contains filtered or unexported fields
}

HashMap is golang implementation of hashmap

func New

func New() *HashMap

New return new HashMap instance

func (*HashMap) Contains

func (hm *HashMap) Contains(key interface{}) bool

Contains checks if given key is stored in hashmap

func (*HashMap) Get

func (hm *HashMap) Get(key interface{}) interface{}

Get returns value associated with given key

func (*HashMap) Put

func (hm *HashMap) Put(key interface{}, value interface{}) interface{}

Put puts new key value in hashmap

Jump to

Keyboard shortcuts

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