Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hienduyph/collections
Go Collections for generics worlds
https://github.com/hienduyph/collections
Last synced: 4 days ago
JSON representation
Go Collections for generics worlds
- Host: GitHub
- URL: https://github.com/hienduyph/collections
- Owner: hienduyph
- License: mit
- Created: 2021-10-14T15:13:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-14T15:14:00.000Z (about 3 years ago)
- Last Synced: 2024-11-09T06:28:01.048Z (about 2 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Collections for generics worlds
## Usages
### `Sets`
```go
package mainimport "github.com/hienduyph/collections/sets"
func main() {
setStr := sets.NewWithCap[string](10)
setStr.Add("my")
setStr.Has("my") // true
}
```## Development
Install `gotip` first: https://pkg.go.dev/golang.org/dl/gotip
```bash
go install golang.org/dl/gotip@latest
gotip download
```**Run Test**
```bash
gotip test -v ./...
```