func (rs *RangeScanner) ItemMapping() (map[string][]byte, error) {
	items := make(map[string][]byte)
	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[string(k)] = v
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return items, err
}
// ItemMapping returns a map of key/value pairs for keys within the range.
// This only works with buckets whose keys are byte-sliced strings.
ItemMapping returns a map of key/value pairs for keys within the range.
This only works with buckets whose keys are byte-sliced strings.
// ItemMapping returns a map of key / value pairs for keys within the range . // This only works with buckets whose keys are byte - sliced strings .
func (rs *RangeScanner) ItemMapping() (map[string][]byte, error) {
	items := make(map[string][]byte)
	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[string(k)] = v
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return items, err
}
func ( rs * RangeScanner ) ItemMapping ( ) ( map [ string ] [ ] byte , error ) { items := make ( map [ string ] [ ] byte ) 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 [ string ( k ) ] = v } return nil } ) if err != nil { return nil , err } return items , err }
ItemMapping returns a map of key/value pairs for keys within the range.
ItemMapping returns a map of key / value pairs for keys within the range .