update readme
This commit is contained in:
parent
bc5c7d6f9e
commit
3d0885e419
1 changed files with 20 additions and 1 deletions
21
Readme.md
21
Readme.md
|
@ -15,4 +15,23 @@ state, err := NewLocaleFilesystem("data/")
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
```
|
||||
|
||||
err = satate.StoreState("key", data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
```
|
||||
|
||||
## Get State from HDD
|
||||
|
||||
```
|
||||
state, err := NewLocaleFilesystem("data/")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = satate.GetState("key", &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
```
|
||||
|
|
Reference in a new issue