Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Go Collections for generics worlds

## Usages
### `Sets`
```go
package main

import "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 ./...
```