by hackernoon · 8y ago · 0 comments
edit: pasted here –
func ListItems(query Query) Items {
ListItemsWithLimit(query, 0, 0)
}
func ListItemsWithLimit(query Query, limit int, offset int) Items {
// ...
}For example:
func ListItems(query Query, limit int = 0, offset int = 0) Items {
// ....
}