func (bk *Bucket) MapPrefix(do func(k, v []byte) error, pre []byte) error {
	return bk.db.View(func(tx *bolt.Tx) error {
		c := tx.Bucket(bk.Name).Cursor()
		for k, v := c.Seek(pre); bytes.HasPrefix(k, pre); k, v = c.Next() {
			do(k, v)
		}
		return nil
	})
}
// MapPrefix applies `do` on each k/v pair of keys with prefix.
MapPrefix applies `do` on each k/v pair of keys with prefix.
// MapPrefix applies ` do ` on each k / v pair of keys with prefix .
func (bk *Bucket) MapPrefix(do func(k, v []byte) error, pre []byte) error {
	return bk.db.View(func(tx *bolt.Tx) error {
		c := tx.Bucket(bk.Name).Cursor()
		for k, v := c.Seek(pre); bytes.HasPrefix(k, pre); k, v = c.Next() {
			do(k, v)
		}
		return nil
	})
}
func ( bk * Bucket ) MapPrefix ( do func ( k , v [ ] byte ) error , pre [ ] byte ) error { return bk . db . View ( func ( tx * bolt . Tx ) error { c := tx . Bucket ( bk . Name ) . Cursor ( ) for k , v := c . Seek ( pre ) ; bytes . HasPrefix ( k , pre ) ; k , v = c . Next ( ) { do ( k , v ) } return nil } ) }
MapPrefix applies `do` on each k/v pair of keys with prefix.
MapPrefix applies ` do ` on each k / v pair of keys with prefix .