pagination

package
v1.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	TotalCount  int  `json:"total_count"`
	OffsetCount int  `json:"offset_count"`
	PerPage     int  `json:"per_page"`
	TotalPage   int  `json:"total_page"`
	CurrentPage int  `json:"current_page"`
	NextPage    int  `json:"next_page"`
	PrevPage    int  `json:"prev_page"`
	IsFirstPage bool `json:"is_first_page"`
	IsLastPage  bool `json:"is_last_page"`
}

Object ... ページネーションのオブジェクト

func New

func New(currentPage int, perPage int) *Object

New ... ページネーションを作成する

func (*Object) Set

func (m *Object) Set(totalCount int)

Set ... ページネーションを設定する

Jump to

Keyboard shortcuts

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