code: func (pr PaginatedResources) Resources() ([]interface{}, error) {
  	slicePtr := reflect.New(reflect.SliceOf(pr.resourceType))
  	err := json.Unmarshal([]byte(pr.ResourcesBytes), slicePtr.Interface())
  	slice := reflect.Indirect(slicePtr)
  
  	contents := make([]interface{}, 0, slice.Len())
  	for i := 0; i < slice.Len(); i++ {
  		contents = append(contents, slice.Index(i).Interface())
  	}
  	return contents, err
  }
docs: // Resources unmarshals JSON representing a page of resources and returns a
  // slice of the given resource type.