aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/get.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bolt/get.go')
-rw-r--r--cmd/bolt/get.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bolt/get.go b/cmd/bolt/get.go
index 10216e3..6ea7f04 100644
--- a/cmd/bolt/get.go
+++ b/cmd/bolt/get.go
@@ -22,7 +22,7 @@ func Get(path, name, key string) {
err = db.View(func(tx *bolt.Tx) error {
// Find bucket.
- b := tx.Bucket(name)
+ b := tx.Bucket([]byte(name))
if b == nil {
fatalf("bucket not found: %s", name)
return nil