func (rs *RangeScanner) Items() (items []Item, err error) {
	err = rs.db.View(func(tx *bolt.Tx) error {
		c := tx.Bucket(rs.BucketName).Cursor()
		for k, v := c.Seek(rs.Min); isBefore(k, rs.Max); k, v = c.Next() {
			items = append(items, Item{k, v})
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return items, err
}
// Items returns a slice of key/value pairs for keys within the range.
// Note that the returned slice contains elements of type Item.
Items returns a slice of key/value pairs for keys within the range.
Note that the returned slice contains elements of type Item.
// Items returns a slice of key / value pairs for keys within the range . // Note that the returned slice contains elements of type Item .
func (rs *RangeScanner) Items() (items []Item, err error) {
	err = rs.db.View(func(tx *bolt.Tx) error {
		c := tx.Bucket(rs.BucketName).Cursor()
		for k, v := c.Seek(rs.Min); isBefore(k, rs.Max); k, v = c.Next() {
			items = append(items, Item{k, v})
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return items, err
}
func ( rs * RangeScanner ) Items ( ) ( items [ ] Item , err error ) { err = rs . db . View ( func ( tx * bolt . Tx ) error { c := tx . Bucket ( rs . BucketName ) . Cursor ( ) for k , v := c . Seek ( rs . Min ) ; isBefore ( k , rs . Max ) ; k , v = c . Next ( ) { items = append ( items , Item { k , v } ) } return nil } ) if err != nil { return nil , err } return items , err }
Items returns a slice of key/value pairs for keys within the range.
Items returns a slice of key / value pairs for keys within the range .