Skip to content

neptulon/cmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMap

Build Status GoDoc

Thread-safe Go map implementation suitable for concurrent access from multiple goroutines. Built on basic idea taken from: Go maps in action #concurrency

Example

import "github.com/neptulon/cmap"

m := cmap.New()
m.Set("foo", "bar")

val := m.Get("foo");
bar := val.(string)
log.Println(bar)

m.Delete("foo")

To see a more comprehensive example and relevant documentation, check the godocs.

Testing

All the tests can be executed with GORACE="halt_on_error=1" go test -v -race -cover ./... command.

License

MIT

About

Concurrent map: thread-safe map implementation for Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages