common

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination[T any] struct {
	Total   int64
	Count   int64
	Page    int64
	Data    []T
	HasNext bool
}

Pagination is a struct that holds the configuration for the Pagination

  • Total is the total number of items
  • Count is the number of items in the current page
  • Page is the current page
  • Data is the items in the current page
  • HasNext is a boolean that indicates if there is a next page

Jump to

Keyboard shortcuts

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