Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaxLimit = 300
)
Variables ¶
This section is empty.
Functions ¶
func DocToMap ¶
func DocToMap(inter interface{}, f ObjToMapFunc) (interface{}, int)
Types ¶
type ObjToMapFunc ¶
type ObjToMapFunc func(i interface{}) map[string]interface{}
type Pagination ¶
type Pagination interface { Output(w io.Writer) error GetRows() interface{} GetAllPages() int64 GetPage() int64 }
func NewPagination ¶
func NewPagination( source PaginationSource, limit, page int64, format func(i interface{}) map[string]interface{}, ) (Pagination, error)
type PaginationSource ¶
Click to show internal directories.
Click to hide internal directories.