Documentation
¶
Overview ¶
Package pagination provides utilities to handle pagination in API responses.
Pagination is a common feature in APIs that allows retrieval of large datasets in smaller chunks, enhancing performance and resource usage. This package aims to simplify pagination-related tasks by providing helpful functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFromQueryParam ¶
ExtractFromQueryParam extracts the lastID from the given URI, which is assumed to be a URL with query parameters. It specifically looks for a query parameter named 'from' and returns its value as a string. If the URI cannot be parsed or the query parameter is not found, it returns an empty string and the encountered error.
Types ¶
This section is empty.