Fix doc iteration

This commit is contained in:
Tomasz Rojek 2021-11-18 13:21:24 +01:00
parent acb9a96694
commit da0b5d86c8
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
})