code: func NewPaginatorFromParams(params PaginationParams) *Paginator {
  	page := defaults.String(params.Get("page"), "1")
  
  	perPage := defaults.String(params.Get("per_page"), strconv.Itoa(PaginatorPerPageDefault))
  
  	p, err := strconv.Atoi(page)
  	if err != nil {
  		p = 1
  	}
  
  	pp, err := strconv.Atoi(perPage)
  	if err != nil {
  		pp = PaginatorPerPageDefault
  	}
  	return NewPaginator(p, pp)
  }
docs: // NewPaginatorFromParams takes an interface of type `PaginationParams`,
  // the `url.Values` type works great with this interface, and returns
  // a new `Paginator` based on the params or `PaginatorPageKey` and
  // `PaginatorPerPageKey`. Defaults are `1` for the page and
  // PaginatorPerPageDefault for the per page value.