pagination

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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