文件名称:stringset:一组用go编写的并发安全字符串
文件大小:10KB
文件格式:ZIP
更新时间:2024-03-12 01:55:51
go golang set strings concurrency
弦集 stringset为golang中的字符串创建并发安全的集合 安装 go get -u github.com/axamon/stringset 用法 package main import ( "fmt" "github.com/axamon/stringset" ) func main () { testSet := NewStringSet ( "pippo" , "pluto" , "paperino" , "pippo" ) slice := testSet . Strings () sort . Strings ( slice ) for _ , element := range slice { fmt . Println ( element ) } // Output: // paperino // pippo
【文件预览】:
stringset-master
----.travis.yml(157B)
----stringset.go(3KB)
----methodAdd.go(416B)
----.github()
--------ISSUE_TEMPLATE()
----methodIntersect.go(1KB)
----test.sh(244B)
----LICENSE(1KB)
----stringset_test.go(5KB)
----.gitignore(48B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(1KB)
----types.go(207B)
----go.mod(44B)
----Gopkg.toml(737B)
----Gopkg.lock(222B)