Improved documentation

This commit is contained in:
Eduard Urbach 2023-07-06 15:47:20 +02:00
parent befe975594
commit 808ff00e3b
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -10,19 +10,6 @@ If you like, you can operate on your entire data with classic UNIX tools.
go get git.akyoto.dev/go/ocean
```
## API
```go
type Collection[T any] interface {
All() <-chan *T
Clear()
Delete(key string)
Exists(key string) bool
Get(key string) (value *T, ok bool)
Set(key string, value *T)
}
```
## Example
```go