temp

package
v0.0.0-...-43d03be Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KEY

type KEY int

generic

type KeyMagic

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

KeyMagic does some magic on the keys. In this example the insertions are counted and the last inserted key is stored.

type Map

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

Map holds the map and a KeyMagic struct

func New

func New() *Map

New creates a new map

func (Map) Get

func (m Map) Get(key KEY) VALUE

Get a value from the map

func (*Map) Put

func (m *Map) Put(key KEY, value VALUE)

Put adds a key,value pair to the map

type VALUE

type VALUE int

generic

Jump to

Keyboard shortcuts

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