Merge pull request #79 from TomRoSystems/trojek-fix-readme

Fix example from README
This commit is contained in:
Josh Baker 2021-12-22 17:48:54 -07:00 committed by GitHub
commit f5d7b17e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ All keys/value pairs are ordered in the database by the key. To iterate over the
err := db.View(func(tx *buntdb.Tx) error {
err := tx.Ascend("", func(key, value string) bool {
fmt.Printf("key: %s, value: %s\n", key, value)
return true // continue iteration
})
return err
})