diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2016-09-13 10:53:39 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 10:53:39 -0600 |
commit | fff57c100f4dea1905678da7e90d92429dff2904 (patch) | |
tree | 88e727f92688ed87a8ad91f62317d5cd25cd814a | |
parent | Merge pull request #594 from anacrolix/patch-1 (diff) | |
parent | Update README.md (diff) | |
download | dedo-fff57c100f4dea1905678da7e90d92429dff2904.tar.gz dedo-fff57c100f4dea1905678da7e90d92429dff2904.tar.xz |
Merge pull request #595 from namore/add_warning_foreach_keys
Update README.md
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -448,6 +448,10 @@ db.View(func(tx *bolt.Tx) error { }) ``` +Please note that keys and values in `ForEach()` are only valid while +the transaction is open. If you need to use a key or value outside of +the transaction, you must use `copy()` to copy it to another byte +slice. ### Nested buckets |