go-set:实现由哈希图支持的集合

时间:2021-03-11 10:54:28
【文件属性】:
文件名称:go-set:实现由哈希图支持的集合
文件大小:44KB
文件格式:ZIP
更新时间:2021-03-11 10:54:28
Go English | 放 Set是一种抽象数据类型,可以存储唯一值,而无需在Go中执行任何特定的顺序实现。 除了用于定义功能的参考文档,它还实现了一些有用的功能。 例如:Each,EachE,List,SortedList等。 安装 使用go get命令获取最新版本 go get github.com/SeananXu/go-set 用以下命令导入: import "github.com/SeananXu/go-set" 并在代码中使用set作为包名称。 例子 初始化 // interface set interfaceSet := set . NewInterface () // int set intSet := set . NewInt () // int64 set int64Set := set . NewInt64 () // float32 set float32Set
【文件预览】:
go-set-master
----float32.go(8KB)
----interface_test.go(24KB)
----string_test.go(24KB)
----float64.go(8KB)
----README-zh_CN.md(2KB)
----int_test.go(21KB)
----int.go(7KB)
----float32_test.go(23KB)
----int64_test.go(22KB)
----string.go(7KB)
----LISENCE(1KB)
----interface.go(8KB)
----float64_test.go(23KB)
----examples()
--------int()
--------int64()
--------README-zh_CN.md(298B)
--------float32()
--------interface()
--------string()
--------README.md(324B)
--------float64()
----set.go(1KB)
----int64.go(7KB)
----README.md(2KB)
----go.mod(43B)

网友评论