code: func (b *Base) TransformArray(entities interface{}) ([]map[string]interface{}, error) {
  	s := reflect.ValueOf(entities)
  	if s.Kind() != reflect.Slice && s.Kind() != reflect.Array {
  		return nil, fmt.Errorf("TransformArray() given a non-slice type")
  	}
  	result := []map[string]interface{}{}
  	for i := 0; i < s.Len(); i++ {
  		result = append(result, b.Transform(s.Index(i).Interface()))
  	}
  	return result, nil
  }
docs: // TransformArray transforms the entities into a []map[string]interface{} array
  // ready to be serialized. Entities must be a slice or an array