Open ages96 opened 5 years ago
Here is my code
import ( "github.com/biezhi/gorm-paginator/pagination" ) var orders []structs.Order db = helpers.DB.Where("id > ?", 0) pagination.Pagging(&pagination.Param{ DB: db, Page: 1, Limit: 10, OrderBy: []string{"id desc"}, }, &orders)
Exception undefined: pagination.Pagging
pagination.Pagging
does anyone have to be initialized first ?
Paging is just mispelled, try pagination.Paging
pagination.Paging
This readme has typo. I issued a pull request, but no response yet.
Here is my code
Exception undefined:
pagination.Pagging
does anyone have to be initialized first ?