utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 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 IPagination

type IPagination interface {
	Get() *Pagination
	GetPage() int
	GetLimit() int
}

IPagination abstraction for your pagination data getters.

type Pagination

type Pagination struct {
	Page  int
	Limit int
}

Pagination pagination data.

func (*Pagination) Get

func (p *Pagination) Get() *Pagination

Get get pagination struct.

func (*Pagination) GetLimit

func (p *Pagination) GetLimit() int

GetLimit get limit value from pagination struct.

func (*Pagination) GetPage

func (p *Pagination) GetPage() int

GetPage get page value from pagination struct.

Jump to

Keyboard shortcuts

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