pagination

package
v3.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 1 Imported by: 0

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

func ExtractFromQueryParam(uri string) (lastID string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL