Documentation ¶
Overview ¶
Package gormutil is a util to convert offset and limit to default values.
Index ¶
Constants ¶
View Source
const DefaultLimit = 1000
DefaultLimit define the default number of records to be retrieved.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimitAndOffset ¶
LimitAndOffset contains offset and limit fields.
func Unpointer ¶
func Unpointer(offset *int64, limit *int64) *LimitAndOffset
Unpointer fill LimitAndOffset with default values if offset/limit is nil or it will be filled with the passed value.
Click to show internal directories.
Click to hide internal directories.