Improved documentation
This commit is contained in:
parent
c62306bdf7
commit
35c039d01b
@ -5,8 +5,14 @@ In-memory key value store that saves your data to plain old JSON files.
|
||||
If you like, you can operate on your entire data with classic UNIX tools.
|
||||
|
||||
```go
|
||||
type User struct {
|
||||
Name string
|
||||
}
|
||||
|
||||
// Data saved to ~/.ocean/User/
|
||||
users := ocean.New("User")
|
||||
users := ocean.New[User]("User")
|
||||
|
||||
// Store key and value in memory and write ~/.ocean/User/1.json
|
||||
users.Set("1", &User{Name: "User 1"})
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user