diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-30 12:00:39 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-30 12:00:39 -0600 |
commit | 2bfb1b3db56490d10951f104a892347d1a6db632 (patch) | |
tree | 682ce04dd86fdfe06f1cb0fc2b084c56c7bdaded /bucket_test.go | |
parent | Remove bolt bench -stat. (diff) | |
parent | Add --batch-size to 'bolt bench'. (diff) | |
download | dedo-2bfb1b3db56490d10951f104a892347d1a6db632.tar.gz dedo-2bfb1b3db56490d10951f104a892347d1a6db632.tar.xz |
Merge branch 'bench-batch' into moar_bench
Conflicts:
cmd/bolt/bench.go
Diffstat (limited to 'bucket_test.go')
-rw-r--r-- | bucket_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bucket_test.go b/bucket_test.go index d0133f8..c506b72 100644 --- a/bucket_test.go +++ b/bucket_test.go @@ -745,7 +745,7 @@ func ExampleBucket_Put() { // Read value back in a different read-only transaction. db.Update(func(tx *Tx) error { value := tx.Bucket([]byte("widgets")).Get([]byte("foo")) - fmt.Printf("The value of 'foo' is: %s\n", string(value)) + fmt.Printf("The value of 'foo' is: %s\n", value) return nil }) @@ -770,7 +770,7 @@ func ExampleBucket_Delete() { // Retrieve the key back from the database and verify it. value := b.Get([]byte("foo")) - fmt.Printf("The value of 'foo' was: %s\n", string(value)) + fmt.Printf("The value of 'foo' was: %s\n", value) return nil }) @@ -809,7 +809,7 @@ func ExampleBucket_ForEach() { // Iterate over items in sorted key order. b.ForEach(func(k, v []byte) error { - fmt.Printf("A %s is %s.\n", string(k), string(v)) + fmt.Printf("A %s is %s.\n", k, v) return nil }) return nil |