Versions in this module Expand all Collapse all v0 v0.3.4 Nov 19, 2021 v0.3.3 Mar 23, 2021 v0.3.2 Mar 23, 2021 v0.3.1 Mar 23, 2021 v0.3.0 Jan 20, 2021 Changes in this version + type Pagination struct + CurrentPage int + Data interface{} + FirstPageUrl string + From int + LastPage int + LastPageUrl string + NextPage *int + NextPageUrl *string + Offset int + Path string + PerPage int + PrevPage *int + PrevPageUrl *string + To int + Total int64 + func Paginate(p *Param, result interface{}) *Pagination + type Param struct + DB *gorm.DB + Limit int + OrderBy []string + Page int + Req *http.Request + ShowSQL bool