MCPcopy
hub / github.com/dolthub/dolt / New

Function New

go/libraries/utils/concurrentmap/concurrentmap.go:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21)
22
23func New[K comparable, V any]() *Map[K, V] {
24 return &Map[K, V]{m: make(map[K]V)}
25}
26
27type Map[K comparable, V any] struct {
28 mu sync.RWMutex

Calls

no outgoing calls

Tested by 7

TestConcurrentMapDeleteFunction · 0.56
TestConcurrentMapLenFunction · 0.56
TestConcurrentMapIterFunction · 0.56