Documentation ¶ Index ¶ type Paginator type Paging func Paginate(c *gin.Context, db *gorm.DB, data interface{}, baseURL string, perPage int, ...) Paging Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Paginator ¶ type Paginator struct { BaseURL string PerPage int Page int Offset int TotalCount int64 TotalPage int Sort string Order string // contains filtered or unexported fields } type Paging ¶ type Paging struct { CurrentPage int PerPage int TotalPage int TotalCount int64 NextPageURL string PrevPageURL string } func Paginate ¶ func Paginate(c *gin.Context, db *gorm.DB, data interface{}, baseURL string, perPage int, withQuery bool) Paging Source Files ¶ View all Source files paginator.go Click to show internal directories. Click to hide internal directories.