From 698b07b074dc554578ecddd138972702f46d0879 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Mon, 7 Apr 2014 16:24:51 -0600 Subject: Add nested buckets. This commit adds the ability to create buckets inside of other buckets. It also replaces the buckets page with a root bucket. Fixes #56. --- cmd/bolt/set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/bolt/set.go') diff --git a/cmd/bolt/set.go b/cmd/bolt/set.go index ff12024..9761f44 100644 --- a/cmd/bolt/set.go +++ b/cmd/bolt/set.go @@ -22,7 +22,7 @@ func Set(path, name, key, value string) { err = db.Update(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 -- cgit v1.2.3