API: github.com/curt-labs/API/helpers/pagination Index | Files

package pagination

import "github.com/curt-labs/API/helpers/pagination"

Index

Package Files

pagination.go

type Objects Uses

type Objects struct {
    Objects    []interface{}
    Pagination Pagination
}

func Paginate Uses

func Paginate(pageStr, resultsStr string, wholeArray []interface{}) Objects

type Pagination Uses

type Pagination struct {
    TotalItems    int `json:"total_items" xml:"total_items"`
    ReturnedCount int `json:"returned_count" xml:"returned_count"`
    Page          int `json:"page" xml:"page"`
    PerPage       int `json:"per_page" xml:"per_page"`
    TotalPages    int `json:"total_pages" xml:"total_pages"`
}

Package pagination imports 1 packages (graph) and is imported by 10 packages. Updated 2016-07-31. Refresh now. Tools for package owners.