From 8ef0fd240b740c355c13337a5d158bded0f37ee1 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 3 Dec 2022 20:57:50 +0500 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b64c19..0d39f1e 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,19 @@ err = db.Set(key, value) // key and value can be any of type // Read data var value ValueType -err = db.Get(key) +err = db.Get(key, &value) // Delete data err = db.Delete(key) ``` +Other methods: + +```go +// Flush data to disk +err = db.Flush() +``` + ## File structure Record is `encoding/gob` structure: