pagination

package
v0.0.0-...-3bf8caa Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0, GPL-3.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pagination contains useful pagination-related helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAndEndPage

func StartAndEndPage(pageToken string, pageSize, totalSize int) (int, int, string, error)

StartAndEndPage takes in the requested page token, wanted page size, total page size. It returns start, end page and the next page token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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