func (db *DB) New(name []byte) (*Bucket, error) {
	err := db.Update(func(tx *bolt.Tx) error {
		_, err := tx.CreateBucketIfNotExists(name)
		if err != nil {
			return err
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return &Bucket{db, name}, nil
}
// New creates/opens a named bucket.
New creates/opens a named bucket.
// New creates / opens a named bucket .
func (db *DB) New(name []byte) (*Bucket, error) {
	err := db.Update(func(tx *bolt.Tx) error {
		_, err := tx.CreateBucketIfNotExists(name)
		if err != nil {
			return err
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return &Bucket{db, name}, nil
}
func ( db * DB ) New ( name [ ] byte ) ( * Bucket , error ) { err := db . Update ( func ( tx * bolt . Tx ) error { _ , err := tx . CreateBucketIfNotExists ( name ) if err != nil { return err } return nil } ) if err != nil { return nil , err } return & Bucket { db , name } , nil }
New creates/opens a named bucket.
New creates / opens a named bucket .