Versions in this module Expand all Collapse all v0 v0.0.2 Nov 3, 2022 v0.0.1 Nov 3, 2022 Changes in this version + func GetPage(c *gin.Context) int + func GetPageOffset(c *gin.Context) (offset, limit int) + func GetPageSize(c *gin.Context) int + type Pager struct + Page int + PageSize int + TotalRows int64 + type Response struct + Ctx *gin.Context + func NewResponse(ctx *gin.Context) *Response + func (r *Response) ToErrorResponse(err *errcode.Error) + func (r *Response) ToResponse(data interface{}) + func (r *Response) ToResponseList(list interface{}, totalRows int64)