Versions in this module Expand all Collapse all v0 v0.4.2 Sep 14, 2024 v0.4.1 Dec 12, 2023 v0.4.0 Dec 12, 2023 Changes in this version + type DefaultPagination struct + Filter map[string]string + Page int + Search string + Size int + Sort string + func (p *DefaultPagination) GetFilter() map[string]string + func (p *DefaultPagination) GetPage() int + func (p *DefaultPagination) GetSearch() string + func (p *DefaultPagination) GetSize() int + func (p *DefaultPagination) GetSort() string + func (p *DefaultPagination) SetDefaultSort(sort string) Pagination v0.3.1 Dec 12, 2023 v0.3.0 Dec 2, 2023 Changes in this version type Pagination + GetFilter func() map[string]string + GetPage func() int + GetSearch func() string + GetSize func() int + GetSort func() string + type PaginationDefault struct + Filter map[string]string + Page int + Search string + Size int + Sort string + func (p *PaginationDefault) GetFilter() map[string]string + func (p *PaginationDefault) GetPage() int + func (p *PaginationDefault) GetSearch() string + func (p *PaginationDefault) GetSize() int + func (p *PaginationDefault) GetSort() string + func (p *PaginationDefault) SetDefaultSort(sort string) Pagination v0.2.0 Nov 20, 2023 Changes in this version + func OrderByScope(sort string) func(db *gorm.DB) *gorm.DB v0.1.5 Nov 9, 2023 v0.1.4 Aug 23, 2023 v0.1.3 Aug 22, 2023 v0.1.2 Jun 25, 2023 v0.1.1 Jun 21, 2023 v0.1.0 May 23, 2023 Changes in this version + const AND + const OR + func Paginate(db *gorm.DB, p Pagination, count *int64, out *[]T, ...) error + type Pagination struct + Filter map[string]string + Page int + Search string + Size int + Sort string + type WhereType string