code: func NewPaginator(page int, perPage int) *Paginator {
  	if page < 1 {
  		page = 1
  	}
  	if perPage < 1 {
  		perPage = 20
  	}
  	p := &Paginator{Page: page, PerPage: perPage}
  	p.Offset = (page - 1) * p.PerPage
  	return p
  }
docs: // NewPaginator returns a new `Paginator` value with the appropriate
  // defaults set.