concurrentmap

时间:2024-04-30 13:05:31
【文件属性】:

文件名称:concurrentmap

文件大小:15KB

文件格式:ZIP

更新时间:2024-04-30 13:05:31

Go

并发图 并发安全地图 用法 安装: go get github.com/chenquan/concurrentmap 导入包: import "github.com/chenquan/concurrentmap" 例子 package main import ( "fmt" "github.com/chenquan/concurrentmap" ) func main () { concurrentMap := concurrentmap . New ( concurrentmap . WithBucket ( 32 )) concurrentMap . Store ( "1" , 1 ) if v , ok := concurrentMap . Load ( "1" ); ok { fmt . Printf ( " v = %v \n " , v ) concur


【文件预览】:
concurrentmap-master
----concurrentmap_bench_test.go(7KB)
----concurrentmap_test.go(4KB)
----option.go(262B)
----concurrentmap_reference_test.go(4KB)
----concurrentmap.go(2KB)
----.github()
--------workflows()
----options.go(217B)
----allocation_bucket.go(575B)
----LICENSE(11KB)
----.gitignore(2KB)
----types()
--------type_test.go(191B)
--------type.go(1KB)
----README.md(7KB)
----go.mod(50B)

网友评论