From 3d0885e4199774a1cc1d6e767d21c3d2c3c226a4 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Mon, 4 Mar 2024 11:21:59 +0100 Subject: [PATCH] update readme --- Readme.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index fab5689..22412c9 100644 --- a/Readme.md +++ b/Readme.md @@ -15,4 +15,23 @@ state, err := NewLocaleFilesystem("data/") if err != nil { panic(err) } -``` \ No newline at end of file + +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) +} +```