/concurrentmap

Go concurrent map implementation

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Concurrent Map

Go concurrent map implementation

GoDoc Go Report Card GoCover

How to use

Simple usage:

import (
	"fmt"

	"github.com/lpicanco/concurrentmap"
)

func main() {
	m := concurrentmap.New()
	m.Put(42, "answer")

	value, found := m.Get(42)
	if found {
		fmt.Printf("Value: %v\n", value)
	}

	fmt.Printf("Map size: %v\n", m.Size())

	m.Remove(42)
}