PreviousPageURL returns the URL for the previous page. Returns empty string if on page 1.
(baseURL string)
| 104 | // PreviousPageURL returns the URL for the previous page. |
| 105 | // Returns empty string if on page 1. |
| 106 | func (p *PageInfo) PreviousPageURL(baseURL string) string { |
| 107 | return p.PreviousPageURLWithKeys(baseURL, "page", "limit") |
| 108 | } |
| 109 | |
| 110 | // NextCursorURLWithKeys returns the URL for the next cursor page using custom query keys. |
| 111 | // Returns empty string if HasMore is false. |