-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need update readme #134
Comments
Can you send a PR? |
Running the sample code on the README import (
"github.com/dgraph-io/badger/v4"
c "github.com/ostafen/clover"
badgerstore "github.com/ostafen/store/badger"
)
func main() {
// use OpenWithStore() if you want to select a different storage backend
store, _ := badgerstore.Open(badger.DefaultOptions("").WithInMemory(true)) // opens a badger in memory database
db, _ := c.OpenWithStore(store)
defer db.Close() // remember to close the db when you have done
} Output
However, changing the import statement to
The packages are imported correctly. I can send in a PR if need be |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
these example code in readme file cause some error.
github.com/ostafen/store
dosen't exist now. We can use the code in the db_test file as followsThe text was updated successfully, but these errors were encountered: