gomap

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gomap contains a very simple in-memory Impl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proto added in v0.5.0

func Proto(o opts.Opts) (impl.Impl, error)

Proto opens a Map with the given Opts.

Types

type Map added in v0.4.1

type Map map[string][]byte

Map is a very simple in-memory Impl.

func (*Map) Close added in v0.4.1

func (m *Map) Close() error

Close nils the underlying map[string][]byte value.

func (*Map) Del added in v0.4.1

func (m *Map) Del(key string) error

Del removes the given key from the Map.

func (*Map) Get added in v0.4.1

func (m *Map) Get(key string) ([]byte, error)

Get returns the value in the Map specified by the given key.

func (*Map) Keys added in v0.4.1

func (m *Map) Keys() ([]string, error)

Keys returns the keys of the map.

func (*Map) Set added in v0.4.1

func (m *Map) Set(key string, data []byte) error

Set assigns the given data to the given key in the Map.

Jump to

Keyboard shortcuts

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