Documentation
¶
Overview ¶
Package db provide useful functions to create mysql instance.
Index ¶
Constants ¶
View Source
const DefaultLimit = 1000
Package gormutil is a util to convert offset and limit to default values.
Variables ¶
This section is empty.
Functions ¶
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.