Improved documentation
This commit is contained in:
parent
befe975594
commit
808ff00e3b
13
README.md
13
README.md
@ -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
|
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
|
## Example
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
Loading…
Reference in New Issue
Block a user