{"repo":"morkid/paginate","free":true,"listed":false,"github":"https://github.com/morkid/paginate","clone":"git clone https://github.com/morkid/paginate.git","description":"paginate - Gorm Pagination Library","language":"Go","stars":113,"topics":["gorm","golang","jquery-select2","fasthttp","jquery-datatable","elasticsearch","pagination","paginate-gorm","paginate","database"],"license":"MIT","category":"databases-storage","readme_excerpt":"paginate - Gorm Pagination Simple way to paginate Gorm result. paginate is compatible with net/http and fasthttp. This library also supports many net/http or fasthttp based frameworks. Table Of Contents - Installation - Configuration - Pagination Result - Paginate using http request - Example usage - net/http - Fasthttp - Mux Router - Fiber - Echo - Gin - Martini - Beego - jQuery DataTable Integration - jQuery Select2 Integration - Programmatically Pagination - Filter format - Customize default configuration - Override results - Field Selector - Dynamic Field Selector - Speed up response with cache - In Memory Cache - Disk Cache - Redis Cache - Elasticsearch Cache - Custom cache - Clean up cache - Limitations - License Installation Configuration you can customize config with paginate.Config struct. see more about customize default configuration. Pagination Result Paginate using http request example paging, sorting and filtering: 1. http://localhost:3000/?size=10&page=0&sort=-name produces: JSON response: 2. http://localhost:3000/?size=10&page=1&sort=-name,id produces: 3. http://localhost:3000/?filters=[\"name\",\"john\"] produces: 4. http://localhost:3000/?filters=[\"name\",\"like\",\"john\"] produces: 5. http://localhost:3000/?filters=[\"age\",\"between\",[20, 25]] produces: 6. http://localhost:3000/?filters=[[\"name\",\"like\",\"john%25\"],[\"OR\"],[\"age\",\"between\",[20, 25]]] produces: 7. http://localhost:3000/?filters=[[[\"name\",\"like\",\"john\"],[\"AND\"],[\"name\",\"not like\",\"doe\"]],[\"OR\"],[\"age\",\"be","default_branch":null,"files":null,"tree":[],"storefront":"/r/morkid","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/morkid/paginate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}